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 is the difference between a switch statement and an if statement?
What is the purpose of a volatile variable?
What are anonymous inner classes?
Why declare Main() inside the class in java ?
Can we have return statement in finally clause? What will happen?
What is the basic concept of java?
Is null a string in java?
What is argument in java?
What is difference between ++ I and I ++ in java?
what is a working thread? : Java thread
What is a null class?
What are structs in java?
What do you understand by Header linked List?
How to stop a thread in java? Explain about sleep () method in a thread?
Can we declare register variable as global?