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

Advantages of Inheritance in java.

Answer Posted / jadhavpnilesh

I read all the answers and same I explained in my recent
interview. She asked me instead of inheriting the class i
will create object of class and call methods of that class
is it not reuse of code ? What she was expecting exactly,
can anyone help ?

Is This Answer Correct ?    16 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What about member inner classes?

1096


What are serialization and deserialization?

1266


What is classpath?

1014


Can I import same package/class twice?

952


What is the method in java?

1102


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

1017


What are the Main functions of Java?

1092


Why object class is super class for every class in java?

1029


Which is the class in java?

1056


Do I need java on my pc?

1052


What is balanced tree in java?

972


Can extern variables be initialized?

954


What is a website container?

955


Why is the singleton pattern considered to be an anti pattern?

888


Can we have two main methods in a java class?

1055