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...

Can a class extend abstract class or interface? why

Answer Posted / abhay bhatia

a class can extend an abstract class and can implement an
interface, why is because even though an abstract class
provide default implementation of its methods, we cannot
instantiate an object of the abstract class and therefore
need a class that extends it to use the instance methods of
this abstract class. An interface on the other hand cannot
even have default implementation, therefore it has to be
implemented to be used

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are packages in java?

1785


What is the synonym of framework?

1049


What do you know about the garbage collector?

1156


What is += mean in java?

1051


Does java support Operator Overloading?

1086


Can an interface be final?

1078


What function extracts specified characters from a string?

1053


How do you declare a variable?

1138


Is binary a low level language?

961


What is an interface in java? Explain

1279


What are the core java topics?

1104


What are the different access modifiers available in java?

1072


What is difference between path and classpath?

1264


How do you add an arraylist to an array in java?

1027


Which category the java thread do fall in?

1044