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 the difference between the font and fontmetrics classes?
Which textcomponent method is used to set a textcomponent to the read-only state?
Why a component architecture for the java platform?
Difference between DurableSubscription and non- DurableSubscription?
Do you think that java should have had pointers?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
Is the session factory thread safe?
What is the relationship between the canvas class and the graphics class?
What do you know about seam?
What is the difference between java class and bean?
Can constructors be synchronized in java?
How messaging services are done, before release of JMS?
Write a singleton program?
What is the difference between a menuitem and a checkboxmenuitem?
Can I run seam with jdk 1.4 and earlier?