Multiple Choice
You read the following statement in a Java program that compiles and executes.
Submarine.dive(depth) ;
What can you say for sure?
A) depth must be an int
B) dive must be a method.
C) dive must be the name of an instance fie
Correct Answer:

Verified
Correct Answer:
Verified
Q3: When method defined in subclass which has
Q4: Which of the following is TRUE?<br>A)In java,
Q5: Consider the following program:<br>Import myLibrary.*;<br>Public class ShowSomeClass<br>{<br>//
Q6: Under what circumstances might you use the
Q7: Consider<br>Public class MyClass<br>{<br>Public MyClass(){/*code*/<br>}<br>// more code...<br>}<br>To instantiate
Q9: In Java Inheritance<br>A)all fields of a class
Q10: When does Exceptions in Java arises in
Q11: Java language has support for which of
Q12: Which of the following is the correct
Q13: Which of the following statement is correct?<br>A)For