SWE 619 – Object-oriented Software Specification and Construction

Date: Wednesday 20 April 2010

Quiz 10

 

1)      What is the difference between instanceof and getClass?

2)      Show the results of a simple class that overrides equals and execute a few test cases that demonstrates the equals method is correct, including a test case that includes null. This will be a cut and paste from your output from your Java environment to Blackboard Quiz 10 question.

3)      Be prepared to address questions form Items 46 and 49 in the Effective Java text book.