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 anonymous class in java?
Define jit compiler?
Explain about class in java?
What are the benefits of operations?
Is null a keyword in java?
What is data type in java?
What is the use of static class?
what is synchronization and why is it important? : Java thread
What is fundamental datatype?
What are the two basic ways in which classes that can be run as threads may be defined?
What are parameters in a method?
What are different types of references?
What is the difference between a constructor and a method?
What is callable java?
Can I override protected method in java?