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
what is ststic with example
What is java command?
What is class??
What happens if a constructor is declared private?
Is namespace same as package in java?
Can java list contain duplicates?
What is a static method in java?
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.
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
What are 4 pillers of object orinted programming?
What are exception handling keywords in java?
What is local class in java?
Discuss about garbage collector in Java.
Can an integer be a string?
How big is a pointer?