How multipleInheritance is possible in java?
Answer Posted / gopi
Namrata what i am telling is,multiple inheritence is not
possible in java.that is every body knows but the thing is,
in c++ while the time of multiple inheritance ambiguity is
happened.like if u have same methods in all extended classes
while the time execution ambiguity will happen.but in the case
of interfaces in java even though u have same methods in all
interfaces there s no ambiguity at execution.for avoiding this
ambiguity in c++ we are using virtual keyword.
ofcourse ur correct.but internally interfaces are satisfied
the multiple interfaces concept.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is ‘is-a ‘ relationship in java?
What is an infinite loop? How infinite loop is declared?
How do you do a line break in java?
Can an integer be a string?
Will the jvm load the package twice at runtime?
What is a top level class in java?
Explain different forms of polymorphism?
Name four container classes.
Difference between final and effectively final ?
Is boolean a data type in java?
Are arrays passed by reference in java?
What are the access modifiers in java?
Why is static used?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
What is jvm? How its run?