Quiz 16 - Thursday July 6, 2000


1. Even though a return type is not included in the signature of the constructor of a class it does have an understood return type. What type of thing does it return? (Hint: Think about how you call the constructor.)

2. Given the statement if (a == 3) b = 4; else b = 5;, use the shortcut to an if with an else to rewrite this statement.

3. What type of variable can we use in a switch statement?

4. What is a feature called that has become obsolete and been replaced as Java has evolved?