I have a class which is abstract which contains only the
abstract methods. This is similar to an interface. Then, if
i have given a choice to choose one of them. Which one i
have to choose and why?
Answer Posted / harikrishna
you never get a chance to choose a method from abstract
class,because if you are writing a abstract class you
have to provide implementation to all the methods in
subclass otherwise you should declare that subclass as
Abstractclass.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is java string pool?
What is annotation in java?
How can we create a synchronized collection from given collection?
How will you compute size of a structure?
Explain public static void main(string args[]).
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
Why do we need singleton class?
When do we use synchronized blocks and advantages of using synchronized blocks?
What is the abstraction?
Define immutable object?
What happens if main method is not static?
What is n in java?
What is jvm? How its run?
What an i/o filter?
How do you start a thread?