Programming - Abstract Classes
You Are Here :: Home > JAVA > Abstract Classes - General Questions
19. |
___________________ classes are used to provide a template or design for concrete subclasses down the inheritance tree.
|
A. |
Abstract |
B.
|
Static |
C.
|
Non-Static
|
D.
|
Explicit
|
|
Answer: Option A
Explanation:
Abstract classes are used to provide a template or design for concrete subclasses down the inheritance tree. |
|
20. |
___________________ is a process of hiding the implementation details and showing only functionality to the user.
|
A. |
Abstract |
B.
|
Static |
C.
|
Non-Static
|
D.
|
Explicit
|
|
Answer: Option A
Explanation:
Abstract is a process of hiding the implementation details and showing only functionality to the user. |
|
21. |
_______________________ focus on what the object does instead of how it does it.
|
A. |
Abstraction |
B.
|
Encapsulation |
C.
|
Inheritance
|
D.
|
Polymorphism
|
|
Answer: Option A
Explanation:
Abstraction focus on what the object does instead of how it does it. |
|
22. |
How many ways to achieve abstraction in Java?
|
|
Answer: Option B
Explanation:
There are three ways to achieve abstraction in Java. |
|
23. |
A ______________________ is the method that returns the instance of the class.
|
A. |
Factory Method |
B.
|
Static |
C.
|
Non-Static
|
D.
|
Explicit
|
|
Answer: Option A
Explanation:
|
24. |
An _____________________ class can have data member,abstract method,method body,constructor and even main() method also.
|
A. |
Abstract |
B.
|
Static |
C.
|
Non-Static
|
D.
|
Explicit
|
|
Answer: Option A
Explanation:
|
« prev
next »