how an we achive multiple inhetitance in java using
interface..??
Answers were Sorted based on User's Feedback
Answer / sindhu
In Java Multiple Inheritance can be achieved through use of Interfaces by implementing more than one interfaces in a class.
| Is This Answer Correct ? | 19 Yes | 0 No |
Answer / sudhir
ya,use interface make 2nd class interface and use
implements keyword for inheritance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Differentiate between a constructor and a method? Can we mark constructors final?
How to check if a list is sorted in java?
This is my code i have a doubt class ab implements a,b { public void add() { System.out.println("Hi") } } interface a { public void add(); } interface b { public void add(); } in this code i have two interface implemented in the class has same method.just i want to know which method of interface implemented in the class. interface a or interface b? confused me .
what is the final keyword denotes in java?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
Mention a package that is used for linked list class in java.
what is inner class in java?
Explain the difference between extends thread vs implements runnable in java?
What are decalarations?
Is special character in java?
What is cloneable interface?
Differentiate between overriding and overloading cases?