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 / neha thakur

abstract class contains all abstract method or all concrete
method or combination of both. we can not directly create
object of abstract class.abstract class methods must
implemented in sub class.

interface contains declared method but does not contain body
of method.like abstract class we can not create instance of
interface.methods defined in interface are public &
implicity called as abstract method & interface must be
implemented in the classes with implements keyword which
contains implementation of methods

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is immutable data?

1044


What is a java applet? What is an interface?

1088


What is a “stateless” protocol ?

982


What is a qualifier in a sentence?

984


Can we print null in java?

1053


What is a modifier?

1509


What exactly is a .class file?

1042


What is += mean in java?

995


What is difference between synchronize and concurrent collection in java?

1059


Why stringbuilder is not thread safe?

1020


Can list have duplicates in java?

901


What happens if an exception is throws from an object's constructor?

1123


What is difference between char array and string?

1108


How do you delete a list in java?

946


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

1055