what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / prabir kumar
1) Classes can implements any no. of interfaces, but
extends only one abstract class.
2) interfaces can be best the choice when your program need
some global variables.
| Is This Answer Correct ? | 24 Yes | 8 No |
Post New Answer View All Answers
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Do loops java?
What do you meant by active and passive objects?
What are the basic control structures?
How to invoke external process in java.
Why do we need data structure in java?
What is the purpose of using javap?
What is this keyword in java?
What do the thread?class methods run() and start() do?
What are loops in java? What are three types of loops?
What is the difference between jdk, jre, and jvm?
How does arraylist work in java?
why are there separate wait and sleep methods? : Java thread
How do you invoke a method?
What is void in java?