Create three Exception classes (using extends Exception) that correspond respectively to the following error situations

(i) Create three Exception classes (using extends Exception) that

 

correspond respectively to the following error situations:

• the first of the operands in the preceding exercise being non-numeric;

• the second being non-numeric;

• both being non-numeric. Give these classes empty constructor bodies, define the toString method for

each to return a meaningful error message and place the classes in a package

called errorExceptions. Create a subdirectory of classes called errorExceptions

and save these Exception classes (at least the .class files) into this directory.

(ii) Modify the JSP of the preceding exercise so that it imports package

errorExceptions and throws an object of one of the three Exception classes just

defined, according to whether the first operand, the second operand or both

is/are non-numeric. (This involves some interesting logic that includes nested

try blocks.) If you are going to change the name of your error page (which

will require modification, as noted below), remember to change its name in this

JSP's page directive.

(iii) Modify the associated JSP error page so that it makes use of the toString

method of the implicit exception object (if it didn't already do so) and allows

return to the correct JSP.

find the cost of your paper

prepare a lead container of mass 1.5 kg and pour 0.65 kg of water into it, both at the room temperature of 20.5°C.

You are at a restaurant eating lunch with a friend. After the meal, your friend realizes they left their wallet at home. Your friend gives you a piece of silver….

Given the above information, how many people did McKinsey and BCG hire in the year 2013?

There are two big consulting firms in Melbourne, McKinsey and Boston Consulting Group (BCG); assume that their clients view them as providing identical consulting services. They hire people on yearly….

write a program that reads a file and displays all of the words in it that are misspelled.

A spell checker can be a helpful tool for people who struggle to spell words correctly. In this exercise, you will write a program that reads a file and displays….