In real time project when will we use Abstract class. and
what are the difference between abstract and interface.
Answer Posted / gopi
abstract class means--it has atmost one abstract
method.remaining might be abstract or not.
interface means ---it has almostall abstract methods.u have
only the method specification.
In real time if u want to share the some common features in
the abstract class u have to extends the abstract class.
so, u need not wrote the body to the all the methods.
if u implement interface u should write body to the all
the methods.
| Is This Answer Correct ? | 12 Yes | 13 No |
Post New Answer View All Answers
How database connectivity in XML is achieved?
Name the class that is used to bind the server object with RMI Registry?
What is ioc concept?
Are there books about seam?
the same information whether it will connect to the database or it will be used previous information?
How are commas used in the intialization and iteration parts of a for statement?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
Define prototype?
What is a clone?
What is local interface. How values will be passed?
whats is statement and procedure
Can constructors be synchronized in java?
What restrictions are placed on the values of each case of a switch statement?
Do you think that java should have had pointers?
Difference between DurableSubscription and non- DurableSubscription?