11. |
All classes in Java are inherited from which class?
|
||||||||
Answer:
Option (d) |
12. |
Static members are not inherited to subclass.
|
||||
Answer:
Option (b) |
13. |
Which of the following is used for implementing inheritance through class?
|
||||||||
Answer:
Option (c) |
14. |
Does Java support multiple level inheritance?
|
||||
Answer:
Option (a) |
15. |
You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
|
||||||||
Answer:
Option (c) |
16. |
What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?
|
||||||||
Answer:
Option (d) |
17. |
Given a method in a protected class, what access modifier do you use to restrict access to that method to only the other members of the same class?
|
||||||||
Answer:
Option (c) |
18. |
Which of these keywords are used to define an abstract class?
|
||||||||
Answer:
Option (b) |
19. |
Which of these is not abstract?
|
||||||||
Answer:
Option (a) |
20. |
If a class inheriting an abstract class does not define all of its function then it will be known as?
|
||||||||
Answer:
Option (a) |