Difference between Interface & Abstract class?

Answer Posted / ravikiran(aptech mumbai)

Interface is purely abstract.all the methods declared inside
the interfaqce are by default abstract and public.

where as an abstract class can have abstarct as well as non
abstact methods.

And an abstract class may heve no abstract methods at all.
we will do like this to restrict the creation of instance
ofthat particular class.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is join () in java?

528


What is the primitive type byte?

581


What is the method overriding?

621


What lambda means?

544


Why vector class is used?

539






What is formatted output?

509


What is variable explain?

526


Why local variables are stored in stack?

500


What is a predicate method?

562


What is the this keyword?

555


Why is the main method declared static?

586


What are data types in oop?

549


Explain the difference between treeset and treemap in java?

529


What is square root in java?

586


What is the char data type?

523