Consider that class classA, abstract class classB, and
final classC have been defined.Which one of the following
is correct?
1. classA extends classC implements classB
2. class A extends classB, classC
3. classA extends classB
4. classB implements classC
Answer Posted / manikandan [ gtec,vellore ].
answer is 3) classA extends classB
Explanation:
Final Class Can't b extend with any other class but we can
instantiated.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a map in java?
Write a java program that prints all the values given at command-line.
What are Normalization Rules? Define Normalization?
Explain inheritance in java?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is contract between hashcode and equal method?
What do you understand by classes in java?
Can Exception handling we can handle multiple catch blocks?
How to Sort Strings which are given in List and display in ascending order without using java api.
Explain differences between collection api and stream api?
Explain runtime exceptions?
What is immutable state?
What are synchronized methods ?
Why string is not a wrapper class?
What is the difference between the paint() and repaint() methods?