In real time project when will we use Abstract class. and
what are the difference between abstract and interface.
Answer Posted / aravind
Depending upon the requirement.
Abstract class---->it contains zero or more abstract methods.
ex HttpServlet and GenericServlet
HttpServlet contains all sre concrete methods but it
declared as a Abstract class.
InterFace--->It contains all abstract methods.
if we extends the abstract class .there is chance to extend
another class.
if we implements the interface we can extends another class
Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
How can I scroll through list of pages like the search results in google?
What are externizable interface?
What is a clone?
When is the best time to validate input?
What is the infobus?
What are JTA/JTS and how they used by client?
What’s jboss jbpm?
the same information whether it will connect to the database or it will be used previous information?
Name the eight primitive java types.
How to deploy Jar, War files in J2EE?
What is the relationship between local interfaces and container-managed relationships?
Is jvm a overhead?
What is the RMI and Socket?
Can I use javascript to submit a form?
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?