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 difference between abstract and interface?
can i give real time example for the two topics?

Answer Posted / pawan v. tak

abstract class cantains implemented as well as non
implemented methods.The non implemented methods are called
as abstract methods.if we do not provide the
implementations of all the methods of the abstract class
the class that extends this class should be declared as
abstract.
And interface contains only abstract methods, i.e no method
implementaion is there in interface.In interface all data
members are public final and static means they wont be
changed and can be called by using classname and "."
operator. If you need to change your design, make it an
interface.

Is This Answer Correct ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different approaches to implement a function to generate a random number?

1071


Can each java object keep track of all the threads that want to exclusively access it?

961


Why do we need singleton class?

1017


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

1077


What is an example of declaration?

1014


how to deploy tomcatserver to weblogic server? write d following steps?

1975


Why main function is static?

1265


What is the old name of java?

1012


What is mean by exception?

1041


What checkbox method allows you to tell if a checkbox is checked?

1016


Explain the JDB in depth & command line.

1025


Can inner class final?

1113


What is the purpose of default constructor?

1009


What is the tradeoff between using an unordered array versus an ordered array?

1247


What is lastindexof in java?

1119