If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?

Answer Posted / prasad bhagwat

You can inherit the abstract class and use only those
methids which you want.

But in Interface you have you implement every method.

Is This Answer Correct ?    7 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ++ a in java?

567


How an object is serialized in java?

524


What are the files generated after using IDL to java compiler?

582


List primitive java types?

591


What is the covariant return type?

576






How do you detect memory leaks?

578


How garbage collection is done in java?

548


What is internal variable?

536


What is scope of a variable?

603


What is codebase?

534


Can private class be inherited in java?

547


Define reflection.

575


Java is Pass by Value or Pass by Reference?

616


What is the difference between length and length() method in java?

640


What is the benefit of lambda expressions?

488