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
What will be the default values of all the elements of an array defined as an instance variable?
Can we make the abstract methods static in java?
Is break statement can be used as labels in java?
What is the arraylist in java?
What does java ide mean?
Where are the local variables stored?
Is nullpointerexception checked or unchecked?
What is the use of keywords in java?
What about abstract classes in java?
What is a lambda expression ? What's its use ?
What do you mean by constant time complexity?
What does split function do in java?
What is Classloader in Java?
What is the difference between numeric and integer?
What is garbage collection? What is the process that is responsible for doing that in java?