Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / chandra
we can not do with same method name. i tried it in jdk1.5,
not able to compile.
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What are the drawbacks of singleton class?
How do you format in java?
What is the purpose class.forname method?
What is a stringbuffer?
How do you convert boolean to boolean?
Explain method overloading?
Which is bigger double or float?
What is an 8 bit word?
Is 0 an irrational number?
Explain the use of shift operator in java. Can you give some examples?
How many types of gc are there in java?
How many static init can you have?
What is the difference between sop and work instruction?
What restrictions are placed on method overriding?
Can a class be private or protected in java?