How multipleInheritance is possible in java?
Answer Posted / harikrishna
Hi, Aruna how r u doing?
In Java multiple inhritance provided through interfaces
by extending morethan one interface. We can extend more
than one class in C++. But this is not possible in java
that's why java doesn't support mutiple inhritance
directly.
public interface GroupedInterface extends Interface1,
Interface2,
Interface3
An interface can extend other interfaces, just as a class
can extend or subclass another class. However, whereas a
class can extend only one other class, an interface can
extend any number of interfaces. The interface declaration
includes a comma-separated list of all the interfaces that
it extends.
Aruna if you still not understood please
go through
http://java.sun.com/docs/books/tutorial/java/IandI/createint
erface.html this site. if you understad it' good. give me
feed back.
Thanq
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain what do you mean by functional overloading in java?
when to use ArrayList and when to use HashMap in webApplication.
Explain about wait() method?
Are true and false keywords?
Can we override private methods?
a thread is runnable, how does that work? : Java thread
What is the difference between jdk and jre?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
Which programming language is most secure?
How do you control extraneous variables?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Does treeset allow null in java?
What is a parameter in java?
What is printwriter in java?
What are static initalizers in java ?