what is the difference between abstract class and
Interface?where we can use it in realtime projects?

Answer Posted / khaleek ahmad

Abstract class is a special kind of class which can not be
instantiated while Interface is an Entity. You can define
some methods in Abstract class but can not in interface

For more detail see at
http://interview-preparation-for-you.blogspot.com/2010/10/difference-between-abstract-class-and.html

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

542


Explain the protected field modifier?

598


when to use ArrayList and when to use HashMap in webApplication.

3892


What is the return type of the main method?

580


What is Gang of four design patterns

598






What is the difference between iterator and enumeration ?

518


What is an eror in java?

561


How do you sort arraylist in descending order?

580


What is parsing a string?

594


What is == in java?

570


What is primitive array?

524


What data structures are used to perform recursion?

608


What is equals method in java?

526


why doesn't java run on all platforms?

573


What is locale?

608