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 |
Which is better stringbuffer or stringbuilder?
I Have a class abstract with one abstract method, so that method should override in the subclass, but i dont want to override, if i am not override what will happen? If compilation will occur then i dont want to give compilation error, then what we need to do??? See the sample program. public abstract class AbstractExample { public abstract void sampleMethod(); } public class AbstractExampleImple extends AbstractExample { }
What is clipping?
Is hashmap thread safe?
what is an virtual function
What is the benefit of inner classes in java?
Explain the concept of proper inheritance?
0 Answers Thomson Reuters, Virtusa,
What is Overriding and how can it be used?
Difference between String and String Buffer?
Explain what do you mean by functional overloading in java?
What do you mean by the term transient?
What is the final access modifier in java?