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
Is the ternary operator written x : y ? Z or x ? Y : z ?
what are the activation groupworks?
Do you think that java should have had pointers?
What is the difference between the session.update() method and the session.lock() method?
Explain the steps in details to load the server object dynamically?
What is the difference between ear, jar and war file?
Which component handles cluster communication in jboss?
How substring() method of string class create memory leaks?
Have you used threads in Servelet?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
How would you create a button with rounded edges?
Brief description about local interfaces?
What is colon_pkg_prefixes and what is its use?
What is JTS?
What is synchronization and why is it important?