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

Answer Posted / richa

abstract class can have some concrete methods and abstract
methods too.abstract class can use accessibility modifier
in abstract class.
but in interface all the method are abstract.In interface
no accessibility modifier is allowed by default it takes
public access modifier.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will be the default values of all the elements of an array defined as an instance variable?

782


Can we make the abstract methods static in java?

808


Is break statement can be used as labels in java?

715


What is the arraylist in java?

756


What does java ide mean?

846


Where are the local variables stored?

783


Is nullpointerexception checked or unchecked?

767


What is the use of keywords in java?

769


What about abstract classes in java?

840


What is a lambda expression ? What's its use ?

824


What do you mean by constant time complexity?

836


What does split function do in java?

759


What is Classloader in Java?

836


What is the difference between numeric and integer?

746


What is garbage collection? What is the process that is responsible for doing that in java?

872