Answer Posted / ganesh
we can extends one or more interfaces by using an interface.
i.e)Multiple inheritance is available in case of interfaces.
we can't extends an interface by using a class,but we able
to implemented.
Sytax:
1)interface interfacename1 extends interface2 //true
2)interface interfacename1 extends
interface2,interfacename2,..............interfacenamen //true
| Is This Answer Correct ? | 16 Yes | 5 No |
Post New Answer View All Answers
What is fundamental datatype?
What is the differences between heap and stack memory in java? Explain
What is nested top-level class?
What about interrupt() method of thread class ?
What is ‘has a’’ relationship in java?
When parseint method can be used?
What is the difference between inner class and nested class?
What is the use of default method in interface in java? Explain
What is difference between class and object in java?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
How do you compare two objects?
What is a stringbuffer?
How do you define a set in java?
How do you escape in java?
What is difference between variable declaration and definition?