Multiple Choice
In Java Inheritance
A) all fields of a class are private
B) all fields of a class are protected
C) a new class is derived from an existing class
D) none of these above
Correct Answer:

Verified
Correct Answer:
Verified
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
Q8: You read the following statement in a
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
Q14: A class that cannot be a subclass