Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Interview-Questions java multiple inheritence
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Sanjay jain
java multiple inheritence
1 Answer(s)      5 years and 10 months ago
Posted in : Java Interview Questions



Advertisement
View Answers

March 15, 2009 at 11:51 PM


Hi friend,

drawbacks of multiple inheritence due to which it is not used in JAVA

let suppose having two classes X & Y both contain a variable x,
now another class C that extends both the classes at a time want to call the variable "x" by
one of its method now JVM is confused about which value of "x" it should take from two which are
at the same level thats why we don't have the multiple inheritance in java.
In C++ they handled multiple inheritance using virtual keyword.
all non-static methods always use dynamic binding. In Java, the programmer doesn?t have
to decide whether to use dynamic binding. The reason virtual exists in C++ is so you can leave it
off for a slight increase in efficiency when you?re tuning for performance.

For read more information on Java visit to :

http://www.roseindia.net/java/

http://www.roseindia.net/java/language/inheritance.shtml

Thanks


Related Tutorials/Questions & Answers:
java multiple inheritence - Java Interview Questions
java multiple inheritence  what are the drawbacks of multiple inheritence due to which it is not used in JAVA?Thanks in Advance.  Hi friend, drawbacks of multiple inheritence due to which it is not used in JAVA
inheritence in java?
inheritence in java?  what is inheritence and how it work inn java
Advertisements
Java inheritence
Java inheritence  if there are 20 methods in a class if only 2 methods are used for inheritence is it better idea to use inheritence or use other logic
java inheritence
java inheritence  c actualy der r 4 employees.... a b c d... dey r havin 4 duties deposit withdrawal n enquiry... deposit has 2 division money n... sec... so now create a base class n 4 sub class using inheritence.... like for eg
Java inheritence
Java inheritence  We know that Object class is super class of every class & a class extends only one class. so How is it possible to a class to extend other than Object class
Java inheritence
Java inheritence  What are some alternatives to inheritance?   Delegation is an alternative to inheritance. Delegation means that you include an instance of another class as an instance variable,and forward messages
inheritence Vs inheritence
inheritence Vs inheritence  what are difference b/w c++ inheritence and java inheritence   Hi Friend, C++ supports Multiple Inheritance while Java does not. Thanks
Java inheritence - Java Beginners
Java inheritence  Looking for a Java inheritance example.thanks...://www.roseindia.net/java/language/inheritance.shtml  Hi Now , click here and get the answer.http://www.roseindia.net/java/language/inheritance.shtml
Inheritence - Java Beginners
  Hi friend, There are two forms of inheritance in the Java...: import java.io.*; class ClassA{ int x; int y; int get(int p, int q){ x=p; y=q; return(0); } void Show(){ System.out.println
multiple inheritance - Java Beginners
multiple inheritance  Why java does not support Multiple Inheritance...)why java classes does not support Multiple Inheritance? JAVA CLASSES ONLY NOT SUPPORT MULTIPLE INHERITANCE.But Java Interfaces can support Multiple
insert multiple selection - Java
insert multiple selection - Java  how to insert multiple selection values from html into database using servlets
multiple inheritance - Java Beginners
multiple inheritance  can u implement one class to more than one interface
Execution of Multiple Threads in Java
Execution of Multiple Threads in Java  Can anyone tell me how multiple threads get executed in java??I mean to say that after having called the start method,the run is also invoked, right??Now in my main method if I want
Does Java support multiple inheritance?
Does Java support multiple inheritance?  Hi, Does Java support multiple inheritance? thanks   hi, Please visit the following link: http://www.roseindia.net/java/language/inheritance.shtml Hope
multiple inheritance
multiple inheritance  Class A extends Class B but Class A also inherit Super Class Object so it is multiple inheritence give reason in support of your answer
java
java  why java is platform independence? why it does not support multiple inheritence
Multiple Inheritance Problem - Java Beginners
Multiple Inheritance Problem  Hello Friend why Multiple Inheritance is not supported by java???? one of the answer i got that if there are three methods i. void show() in 3 super-classes named as A,B,C and if i extends A,B,C
creating multiple threads - Java Beginners
creating multiple threads  demonstrate a java program using multiple thread to create stack and perform both push and pop operation synchronously.  Hi friend, Use the following code: import java.util.*; class
retrieve multiple columns values from multiple csv files in java
retrieve multiple columns values from multiple csv files in java  Suppose there is folder in C:\fileupload which contains these two csv files... be specific in telling me through java only Any help will be much appreciated
Related to multiple inhetitance - Java Beginners
Related to multiple inhetitance  Sir, Plz help me to solve this question. Q.1. Write a Progarm to illustrate the concept of multiple inheritance using interface
Multiple buttons in struts using java script
Multiple buttons in struts using java script  Multiple buttons in struts using java script
Y No Multiple Inheriatance in Java - Java Beginners
, Why java doesn't support multiple inheritance.  Hi Multiple... into a single class is known as multiple inheritance. Java does not support... the interface. In Java Multiple Inheritance can be achieved through use of Interfaces
Display Multiple Images in jscrollpane using Java Jpanel
Display Multiple Images in jscrollpane using Java Jpanel  Browse and Display multiple images in vertical view of java jscrollpane using jpanel
Storing Multiple image in sql using java
Storing Multiple image in sql using java  Hi, How to store and retrieve a multiple image in sql using java but already i have created sql table if i want to insert a image while runtime execution. Can anyone tell me solution
multiple browsers in java script - JSP-Servlet
multiple browsers in java script  How to make my jsp browser specific?  Hi friend, For solving the problem visit to : http://www.roseindia.net/jsp/simple-jsp-example/JSPPlugins.shtml Thanks
Multiple inheritance using interface - Java Beginners
Multiple inheritance using interface  Hi, I understand.... But the use of the interface is when we use multiple inheritance with more than one... in multiple inheritance Thank you, Rajkanth  Hi Friend, Please
Time schedular for multiple batch file execution in java
Time schedular for multiple batch file execution in java  Hello All, i have a task in which i have to design a time schedular in java in which i can automate the batch file execution for the wholw day. For example i should have
How to convert multiple files in java to .zip format
How to convert multiple files in java to .zip format  i receive multiple files from a remote URL as for (String reportid : reportList) { inputStream = AWSFileUtil.getInputStream
java multiple users with single connection - JSP-Servlet
java multiple users with single connection  hi, my problem is as follows : - Hide quoted text - i am developing a web project in java. i have... it for multiple users who uses a single connection to the database simultaneously
How servlet Handles Multiple Request - Java Beginners
How servlet Handles Multiple Request  In servlet life cycle,consider two requests are waiting for service(). I know all request will be assigned to thread, which request gets excecuted first. 1
Java Spring Desktop application with multiple classes and jframe
Java Spring Desktop application with multiple classes and jframe  Hi i am developing a desktop java spring application..It has many Jframes forms and classes...How to close one Jframe from another..Please tell... First jframe
 

 

 

DMCA.com