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
How to find the given number is a prime number or not by getting input from the user
What is the integer of 16?
What is the benefit of using enum to declare a constant?
What is qualitative variable?
can java object be locked down for exclusive use by a given thread? : Java thread
What is string syntax?
What is prime number in java?
How do you sort in java?
Why do we create threads in java?
What are byte codes?
What are the different ways to handle exceptions?
What is widening and narrowing in java? Discuss with an example.
What is the meaning of variables in research?
Do I need java on my computer?
In how many ways we can do synchronization in java?