Question: IN JAVA CODE: [I have seen this problem done in previous questions on this website, but I am unsure if any of the programs INSTANTIATE/TEST
IN JAVA CODE:
[I have seen this problem done in previous questions on this website, but I am unsure if any of the programs INSTANTIATE/TEST ALL EIGHT CLASSES LISTED BELOW AND print "I don't know what kind of object that was" to the console.
Instantiate/test eight wrapper class objects plus an Exception and a String object
Write the method whatIsThisObject. whatIsThisObject accepts a single Object as a parameter, and outputs to the console based on what type of object is passed. Create a main program that tests whatIsThisObject for all the wrapper classes listed below. If a different kind of object is passed, the method should print I dont know what kind of object that was. to the console." These wrapper classes are built into Java; you do not need to create them!
Boolean Byte Character Integer Float Double Long Short
Rubric: whatIsThisObject works as described. Instantiate/test eight wrapper class objects plus an Exception and a String object.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
