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 do you mean by ternary operator in java?

791


When should the method invokelater() be used?

765


What do you mean by inner class in java? Explain

815


Can a serialized object be transferred via network?

706


Can you explain the final method modifier?

773


how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application

1881


Explain the importance of finally block in java?

750


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1837


Can java run on google chrome?

889


Is it possible to compare various strings with the help of == operator?

761


Explain the difference between abstract classes and interfaces in java?

844


Can you instantiate the math class in Java?

811


Explain wait() method of object class ?

885


What is foreach loop in java?

758


What exactly is java?

709