Question: Question 1 Create your own IllegalDivisorException class. Make it a checked exception. Throw it from a divide ( int numerator, int denominator ) method from
Question
Create your own IllegalDivisorException class. Make it a checked exception. Throw it from
a divideint numerator, int denominator method from a Math class. From a main method
in the same class, divide by and print the result divided by is by using your
divide method. Also from the main method call divide and see the error displayed.
Question
Write a class Main with the main method, which writes the command line arguments all of
them to a file named "data.txt Then read the file and print all the data to the console, in
uppercase.
Question
Type in the Quiz
Question
Create your OWN jUnit test cases, for all positive and negative scenarios, and then write code
to pass it A test case should test just one scenario.
Here are the requirements:
Class Name has two instance variables: first and last. The constructor throws
IllegalArgumentExceptions if either is null. The getName method returns the first and last
names in Title Case, concatenated with a space between tiger "woods" becomes "Tiger
Woods"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
