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

Can we override constructors in java?

893


How large is a boolean?

795


What is the default execution method in java?

887


What is the class in java?

791


Why are arrays useful in java?

811


Can you access the private method from outside the class?

760


How do you convert int to char in java?

854


What is array in java?

775


What are the 3 types of control structures?

744


What is nextline method in java?

822


How will you get the platform dependent values like line separator, path separator, etc., ?

814


In which language java is written?

771


What is main function purpose?

777


What is memory leak and how does java handle it?

789


Why packages are used?

933