How to achieve multiple inheretence in java.I need an
example. how we achieve.
Answers were Sorted based on User's Feedback
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 |
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 |
What is api in j2ee?
What is java ee sdk?
What is application client?
What is application client container?
explain the technologies that j2ee platform provides for developing components.
What do you understand by connector?
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??
What is initialization parameter?
Is tomcat a java ee?
Is j2ee a framework?
What is non primitive data type in java?
What is use of final keyword in java?