Use the java api documentation to examine the


Assignment 1: Oracle eKit Practice- Using a Try/Catch Block to Handle an Exception

In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat.During the assignment, you:

• Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method.

• Create a class that calls that parse() method.

• Write a try/catch block to catch the exception thrown by parse().

See your eKit Activity Guide for more details.Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment.

Assignment 2: Enhance Assignment 6-3 with Exception Handling and Deploy

In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class.If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException.setMonth() should insure that the month attribute is between 1 and 12 or throw an IllegalArgumentException.The calling methods or constructors should use try/catch blocks when calling either setDay() or setMonth().Modify your PersonTest class, as necessary, to demonstrate your exception handling.

Once you have your exception handling enhancements in place, create a JAR file for deployment and submit it along with your java, class, and Word (screen shot) files.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Use the java api documentation to examine the
Reference No:- TGS01037207

Expected delivery within 24 Hours