How to achieve multiple inheretence in java.I need an
example. how we achieve.

Answers were Sorted based on User's Feedback



How to achieve multiple inheretence in java.I need an example. how we achieve...

Answer / srikanth jakka

The mechanism of inheriting the features of more than one
base class into a single class is known as multiple
inheritance. Java does not support multiple inheritance but
the multiple inheritance can be achieved by using the
interface.In Java Multiple Inheritance can be achieved
through use of Interfaces by implementing more than one
interfaces in a class.

Is This Answer Correct ?    22 Yes 0 No

How to achieve multiple inheretence in java.I need an example. how we achieve...

Answer / sk.bilal ahmed

muliple inheritance is done with the help of interfaces
Multiple Inheritance
Class C extends A implements B
eg.,

package com.ack.learning;

import java.io.Serializable;
import java.rmi.Remote;
import java.util.Vector;
public class MultipleInheritance extends Vector
implements Remote, Serializable
{
public static void main( String[] args )
{

}
}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More J2EE Interview Questions

What is api in j2ee?

0 Answers  


What is java ee sdk?

0 Answers  


What is application client?

0 Answers  


What is application client container?

0 Answers  


explain the technologies that j2ee platform provides for developing components.

0 Answers  






What do you understand by connector?

0 Answers  


for example we are login into the irctc server from there it will go to the selected bank and deduct amount and come back to the irctc. so if we are developing this in java means will it be run on the same session. but as per my knowledge bank is separate and irctc is separate URL's so it will use two different sessions then how it is maintaining same session through out application and even it uses the payment gateway? how it is working can any one help me on that??

0 Answers  


What is initialization parameter?

0 Answers  


Is tomcat a java ee?

0 Answers  


Is j2ee a framework?

0 Answers  


What is non primitive data type in java?

0 Answers  


What is use of final keyword in java?

0 Answers  


Categories