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 does localhost mean?

884


Explain method overloading?

962


What is linkedlist in java?

930


How are observer and observable used in java programming?

963


Explain implementation and how is it different from conversion?

1017


Does .length start 0 java?

955


How many types of flags are there?

952


What if I write static public void instead of public static void in java?

1024


What restrictions are placed on method overriding in java programming?

932


What is the purpose of the System class?

949


What is java literals?

1045


What are the special characters?

927


What are the data types supported by java? What is autoboxing and unboxing?

932


Explain about fail safe iterators in java?

961


What is an anonymous class in java?

1010