Is java supports multiple inheritance? explain?
Answer Posted / vijayhukkeri@gmail.com
No. Java does't support multiple inheritance. It supports
only multilevel inheritance.Multiple inheritance is
possible in interfaces by using implements keyword.
ex: class a
{
----
}
class b extends a
{
----
}
class c extends a,b // this is not possible
ex2: class a
{
----
}
class b implements a
{
----
}
class c implements a,b // possible
{
---
}
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
Tell us something about set interface.
give an example for encapsulation?
Can we execute a program without main?
What is a final class in java?
Say any two properties in beans?
What is floor in java?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
What does this () mean in constructor chaining concept?
Write a program in java to establish a connection between client and server?
What do you know about the garbage collector in java?
Objects or references which of them gets garbage collected?
What function extracts specified characters from a string?
Which is better stringbuffer or stringbuilder?
How to avoid memory leak in java?
Where will it be used?