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


Does Java support multiple Inheritance?

Answers were Sorted based on User's Feedback



Does Java support multiple Inheritance?..

Answer / santhosh

As per my knowledge java does not support multiple
inheritance through interfaces.Only the people copying the
syntax and saying like that.


my view is what is there in interfaces to inherit?


Because there is nothing to inherit from interfaces,all the
methods are by default public and all the variables are
public static final by default.

Is This Answer Correct ?    0 Yes 3 No

Does Java support multiple Inheritance?..

Answer / tewodros tesema

yes.actually java suports multiple inheritance
example:
class A{
int a=10;
}
class b extends A{
int b=3;
}
clss c extends b{
int c=a+b;
system.out("result"+c);
}
here calss b in herits a and clas c in herits b the it also
in herits a through b. also since java uses interfaces it
also suports multiple inheritance.

Is This Answer Correct ?    2 Yes 29 No

Post New Answer

More Core Java Interview Questions

What is Runtime class and its purpose?

2 Answers  


Is there any difference between synchronized methods and synchronized statements?

0 Answers  


Why is the type for real numbers called double?

0 Answers  


Which sorting algorithm is best in java?

0 Answers  


What is the difference between the boolean & operator and the && operator in java programming?

0 Answers  


What is an abstract class and what is it’s purpose?

0 Answers  


Why are the destructors for base class and derived class called in reverse order when the program exits

0 Answers   HCL,


what is multitherading

3 Answers   Tech Mahindra,


What are the three parts of a lambda expression?

0 Answers  


What's the default access specifier for variables and methods of a class?

0 Answers  


Write a java program to count the number of words present in a string?

0 Answers  


What do you mean by ordered and sorted in collections in java?

0 Answers  


Categories