Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / chandan kumar

Chandan
test in A clashes with test in B;attempting to use
incompatible type

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is special character in java?

610


Why is serialization required?

542


describe synchronization in respect to multithreading? : Java thread

502


What is use of set in java?

488


Why set is used in java?

566






How do you implement tree mirroring in java?

589


What is the synonym of string?

531


What is the independent variable in an experiment?

546


How do you override a method?

547


How can we access some class in another class in java?

544


If we don’t want some of the fields not to serialize how to do that?

563


Is singleton class thread safe?

531


What is a java applet? What is an interface?

630


how to create multithreaded program? Explain different ways of using thread? : Java thread

523


Is void a data type?

534