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

Is java important for my computer?

0 Answers  


What is build file?

0 Answers  


What is java developer job description?

0 Answers  


How will you explain load() and get() methods?

0 Answers  


What is java listener?

0 Answers  






how many external variables are there in jsp ?

1 Answers  


Who is java developer?

0 Answers  


static variable is a class variable which value remains constant for the entire class?? variable means value is changed....hear value is not changed... why it is called static variable

5 Answers   Infosys,


What is the preferred size of a component in java?

0 Answers  


What does java awt stand for?

0 Answers  


What is instance in java?

0 Answers  


What is archiving?

0 Answers  


Categories