Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / sudhakar

1)We define an Interface in the Java application with a
set of abstract methods without any implementation. Which
means all the methods of an interface are by default
abstract methods and public methods.
2)Once an Interface is defined in the application then any
class can implement that interface, in such case the class
must be implemented with all the mehtods of the respective
Interface otherwise the class will become as abstract class.
3)A class can implement any no. of interfaces, in such case
the class must be implimented with all the methods of those
interfaces otherwise the class will become as abstract class

Is This Answer Correct ?    125 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class have 2 constructors?

895


Explain the difference between string, stringbuffer and stringbuilder in java?

1002


What is the difference between assignment and initialization?

1050


Why is the main method static?

1159


What is a layout manager and what are different types of layout managers available in java awt?

1246


What is an infinite loop?

1255


How to make a write-only class in java?

1057


what is deadlock? : Java thread

1009


What is * argv?

1234


Explain, java is compatible with all servers but not all browsers?

1062


What is an empty list in java?

971


What is the use of static methods?

1041


What is downcasting?

1109


What type of variable is error flag?

1071


What is externalizable?

1061