In real time project when will we use Abstract class. and
what are the difference between abstract and interface.
Answer Posted / avinash
In Real time,we use Abstract class when we want the
implemented functionality to be used . In Abstract class ,
there may contain Abstract methods or non abstract
methods(concrete methods).
When we dont want the functionality provided by the abstract
class then we are going to make use of Interface. we
directly implement the interface and provide functionalities
for the abstract methods.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is clustering? What are the different algorithms used for clustering?
What are the different class loaders used by jvm?
Name three component subclasses that support painting?
What is permgen or permanent generation?
How to implement RMI in Java?
What is a class loader?
What state does a thread enter when it terminates its processing?
What are the services in RMI ?
Is a class a subclass of itself?
What is message driven beam?
What is a class loader? What are the different class loaders used by jvm?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
What are the pros and cons of detached objects?
what is Activation Instantinator?
what are the advantages of JTA over JTS?