Why java Don't Support Multiple interitence

Answer Posted / sanjeev

Why cant we face same ambiguity when we declare variables?
interface A{
int i = 10;
}
interface B{
int i = 20;
}
Class C implement A, B{
what is the value of C.i?
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do singleton patterns work?

513


Can we overload the main() method?

545


Are generics important java?

519


What is the string function?

548


What is a treeset class?

554






Which data type is class in java?

547


Can java program run without jre?

565


Difference between current previous versions of Java?

553


how to create daemon thread in java?

600


Why is the type for real numbers called double?

540


What is immutable state?

501


How can we create a synchronized collection from given collection?

575


Can we assign null to double in java?

542


What is anti pattern in programming?

494


What is finally and finalize in java?

590