Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / akhil agarwal

Interface A
{
string test();
}
Interface B
{
int test();
}
class AB implements A,B
{
string test();
int test();
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is ststic with example

1800


What is java command?

789


What is class??

996


What happens if a constructor is declared private?

797


Is namespace same as package in java?

750


Can java list contain duplicates?

792


What is a static method in java?

772


Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.

7875


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

741


What are 4 pillers of object orinted programming?

782


What are exception handling keywords in java?

812


What is local class in java?

773


Discuss about garbage collector in Java.

865


Can an integer be a string?

716


How big is a pointer?

768