term1 Definition1term2 Definition2term3 Definition3
Please sign in to your Google account to access your documents:
SOLUTIONSLIBRARY.COM
HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/
BMIS 312 ASSIGNMENT 7________________________________________Assignment 7 InstructionsSubmit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running.Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an ExceptionIn 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 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and DeployIn 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.
Need help typing ? See our FAQ (opens in new window)
Please sign in to create this set. We'll bring you back here when you are done.
Discard Changes Sign in
Please sign in to add to folders.
Sign in
Don't have an account? Sign Up »
You have created 2 folders. Please upgrade to Cram Premium to create hundreds of folders!