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
Answers were Sorted based on User's Feedback
Answer / 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 |
How do you declare an empty string?
why java is not supporting multiple inheritence?
Can we declare a constructor as final?
What are disadvantages of java?
Is multiple inheritance allowed in Java? Why ?
Java is based on pass by reference or pass by value ..
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What is getkey () in java?
what is interface in java? Explain
What is the entry point in Java, and how is it written?
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
What is the use of runnable interface?