Interface A {
String test();
}

Interface B {
int test();
}

Create a class AB which must implements both A & B
interfaces.

Answer Posted / srinivasa

Class AB Implements A,B{
String test(){
SOS("----");
}
int test(){
SOS("--------");
}
}

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create daemon thread in java?

611


Which graphs are functions?

498


Explain heap sort?

704


What is a ?

758


Which non-unicode letter characters may be used as the first character of an identifier?

602






Can we overload the constructors?

563


Why is singleton not thread safe?

654


What methods are used to get and set the text label displayed by a button object?

558


What is method reference?

521


Name few java util classes introduced with java 8 ?

507


Write a program to check string is palindrome without using loop?

570


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

7426


Explain the concept of proper inheritance?

623


What is the SimpleTimeZone class?

1801


what is difference between equals and ==?

592