Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / niltarlekar
public class AB implements A,B
{
public static void main(String args[])
{
}
}
Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What are the four integer types supported by java?
What is executor memory?
Where is const variable stored?
Write a program to search a number in the given list of numbers.
What is the purpose of an interface?
Can you inherit a constructor java?
Why do we use bufferedreader?
Is a boolean 1 bit?
Which oo concept is achieved by using overloading and overriding?
Differentiate between stringbuffer and string?
Java Compiler is stored in JDK, JRE or JVM?
What is stack class in java?
What is class level lock ?
What is the purpose of sizeof operator?
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. (