Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / b

ONLY ONE INTERFACE CAN BE IMPLEMENTED BY A CLASS

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by stream pipelining in java 8? Explain

531


How to perform linear search in java?

564


What is array and arraylist in java?

525


What is connection class in java?

508


What happens when a thrown exception is not handled?

578






What is mutable object and immutable object?

625


What is the right data type to represent a price in java?

564


What is passing value java?

506


What are byte codes?

655


What is function and its uses?

562


Explain about field hiding in java?

524


Can static methods be inherited?

533


What is close method? How it's different from Finalize & Dispose?

558


What is implicit object in java?

543


What are the three parts of a lambda expression? What is the type of lambda expression?

566