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 is the intersection and union methods?
What is an empty list in java?
Explain about member inner classes?
What is a double vs float?
Why bytecode is called bytecode?
Explain the importance of join() method in thread class?
Can we serialize singleton class?
What is thread pool? How can we create thread pool in java?
What is the difference between double and float variables in java?
Explain about the select method with an example?
What is currentthread()?
What are some characteristics of interference class?
What are the methods available in a class?
What is the old name of java?
How do generics work?