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
How you can force the garbage collection?
Compare Mutex and Semaphore in java.
What is the meaning of variables in research?
Can a function return a function?
What is composition in java?
What is java algorithm?
Does treeset use compareto?
Give example to differentiate between call by value and call by reference.
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
Explain how can you debug the Java code?
What is an abstract method in java programming?
Write a code to show a static variable?
What is hashing principle in java?
What is dynamic binding(late binding)?
Is a class subclass of itself?