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


How multipleInheritance is possible in java?

Answers were Sorted based on User's Feedback



How multipleInheritance is possible in java?..

Answer / shiva

java does nt support multiple interface by using interfaces
its support tis one

Is This Answer Correct ?    0 Yes 0 No

How multipleInheritance is possible in java?..

Answer / vishal

Yes...Gopi u r answer is right.... i am agree with u

Is This Answer Correct ?    0 Yes 0 No

How multipleInheritance is possible in java?..

Answer / srikanth

Multiple Inheritance is possible in java through interfaces only. Where as in C++ it is possible through classes also. Because in C++ there is one operator called scope Resolution operator, by this we can uniquely call one method of super classes. But we have no such operator in java, so it is not possible for a class to be inherited from multiple classes but possible with interfaces. For example,

class MyClass implements interface1,interface2....
{
// code
}
One more thing is, we can define our class from combination of interface and class also. But, combination should contain only one class and one or more interfaces. Ultimately class should be inherited from one class only.
class MyClass extends Class1 implements interface
{
//code
}

Is This Answer Correct ?    0 Yes 0 No

How multipleInheritance is possible in java?..

Answer / srikanth

yes possile but memory will be allocated multiple times

when you extend multple class so, they removed that
concept
a class

b class c class d class

e class
when you what extend a class from e class then all class
will be loaded into main memory which is waste

Is This Answer Correct ?    0 Yes 0 No

How multipleInheritance is possible in java?..

Answer / anurekha

in java multiple inheritance is possible using interface.

Is This Answer Correct ?    1 Yes 3 No

How multipleInheritance is possible in java?..

Answer / suneel

In Java multiple inheritance is not Possible....
Don't think that interface is for multiple inheritance ,most
of the book given wrong idea about - interface is for
multiple inheritance .

Is This Answer Correct ?    1 Yes 3 No

How multipleInheritance is possible in java?..

Answer / sidhu

Yes , Namarata U r answer is write.....!!
I am agree with this satements .

Is This Answer Correct ?    0 Yes 3 No

How multipleInheritance is possible in java?..

Answer / n d rao

yes, Namratha u r correct, i got u r point

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Core Java Interview Questions

whats is the use of final,in which situation final can be used in the application?

2 Answers   DNS,


Java.util.regex consists of which classes?

0 Answers  


What is functional interface in java?

0 Answers  


What is string [] java?

0 Answers  


Is void a type?

0 Answers  


Why char array is favored over string for the storage of passwords?

0 Answers  


Can a class have multiple constructors?

0 Answers  


What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose.

2 Answers   Infosys, Tech Mahindra,


What are different types of classloaders?

0 Answers  


What is this keyword in java?

0 Answers  


Can you call one constructor from another if a class has multiple constructors?

0 Answers  


Why destructor is not used in java?

0 Answers  


Categories