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

Is constructor inherited?

771


Is array serializable java?

762


What is blank final variable?

834


How do you add an arraylist to an array in java?

765


Explain the difference between protected and default access.

787


What is split return?

708


If a class is declared without any access modifiers, where may the class be accessed in java programming?

935


How do you write methodology?

775


What is the difference between static and non-static variables in java programming?

743


Write a program to find maximum and minimum number in array?

803


why an outer class cannot be declared as private?

3955


Do you know how to reverse string in java?

854


Explain when we should make an instance variable private.

846


What is meant by class?

798


Why do we use predicate in java?

850