what is difference between abstract and interface?
can i give real time example for the two topics?

Answer Posted / mahesh yadav ch

interface is a abstract, but abstract is not a interface.

interface is fully-unimplemented structure. where as
abstract is partly implement or may not implement structure.


interface contains statements only(public static final int
a;public void f1();).but abstract contains abstract methods
& variables

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is "this" keyword in java? Explain

664


Why java doesn’t support multiple inheritances?

586


Is it possible to instantiate the abstract class?

540


How do you escape sequences in java?

596


When throws keyword is used?

584






If a method is declared as protected, where may the method be accessed in java programming?

498


What is getkey () in java?

580


How objects are stored in java?

550


What is oop principle in java?

550


What is a double?

591


Which java collection does not allow null?

717


What is an object in java?

561


What is a buffer in computer?

516


What are benefits of java?

562


What is meant by design patterns?

587