Multiple Choice
Which statement is completely True?
A) Java upcasts automatically, but you must explicitly downcast
B) Java downcasts automatically, but you must explicitly upcast
C) Java expects the user to explicitly upcast and downcast
D) Java will both upcast and downcast automatically
E) The rules for upcasting and downcasting depend upon whether classes are declared public, protected, or private
Correct Answer:

Verified
Correct Answer:
Verified
Q11: Java allows one to create polymorphic references
Q17: Write a set of code that will
Q18: The showDialog method is part of which
Q19: Which of the following GUI components would
Q20: Regarding the Software Failure: There was a
Q21: What is printed by this code?<br><br> public class
Q23: Consider the code shown below. It contains
Q26: What is printed? <br><br> public class Inherit<br> {<br><br> abstract class
Q39: An int array stores the following values.
Q46: An int array stores the following values.