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


Please Help Members By Posting Answers For Below Questions

How to find the given number is a prime number or not by getting input from the user

554


What is the integer of 16?

539


What is the benefit of using enum to declare a constant?

661


What is qualitative variable?

524


can java object be locked down for exclusive use by a given thread? : Java thread

534






What is string syntax?

551


What is prime number in java?

539


How do you sort in java?

598


Why do we create threads in java?

584


What are byte codes?

659


What are the different ways to handle exceptions?

542


What is widening and narrowing in java? Discuss with an example.

562


What is the meaning of variables in research?

533


Do I need java on my computer?

528


In how many ways we can do synchronization in java?

529