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

State the merge-sort principle and its time complexity.

764


What is final keyword in java? Give an example.

778


What happens if a constructor is declared private?

808


How is tree Mirroring implemented?

828


What is the nested interface?

811


Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview

3094


What is the importance of static variable?

806


What do bitwise operators do?

746


What does the string method compareto () do?

772


List the different types of classloaders in java.

734


Why do we need data structure in java?

823


What is boolean query?

760


What is the base class of all exception classes in java?

806


What is finalize method?

831


What does main method?

788