When we r go to abstract class and when we go to Interface?
i have confusion this question while in interview plz clarify
Answer Posted / atul
multiple inheritence is not possible so we use interface
instead of it.when we declare interface then inside declare
all methods is by default abstract, data member is by
default final & static .final means there is must
Initialization at declare time otherwise inside first
constructor call.
thats it...
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
Why do we create threads in java?
Where are local variables stored?
What is the difference between static method and instance method in Java?
How to create an interface?
what do you mean by classloader in java?
What are java packages? What is the significance of packages?
What are the skills required for core java?
What is callablestatement? How you can call stored procedure to pass in parameter?
How do you initialize an arraylist in java?
Can we overload run() method in java?
What is connection class in java?
Can you declare an interface method static?
What is a values collection view ?
What happens if an exception is throws from an object's destructor?
How do you format in java?