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

How do you reverse sort a list in java?

940


What is fail first in java?

1206


Can we convert list to set in java?

998


Explain thread life cycle in java?

1040


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

987


How many bits is a char?

996


how can you catch multiple exceptions in java?

1016


What does singleton class mean?

982


Can a top level class be private or protected?

1057


Why do we need data serialization?

994


What is purpose of keyword void?

1049


Differentiate between a constructor and a method? Can we mark constructors final?

1198


can java object be locked down for exclusive use by a given thread? : Java thread

1102


What is the difference between the direct buffer and non-direct buffer in java?

1032


what is thread? What are the high-level thread states? : Java thread

1277