Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / sumit

interface A {
String test();
}

interface B {
int test();
}

class AB implements A
{


public String test()
{ System.out.println("Test1 in AB");
return "a";
}
}
class Test
{
public static void main(String as[])
{

AB i = new AB();
B b = new B(){
public int test()
{
System.out.println("Test");
return 1;
}
};
i.test();
b.test();
}
}

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it called buffering?

1182


How does multithreading take place on a computer with a single cpu?

1053


What is the flag in java?

1106


What is maximum size of arraylist in java?

1085


What do you mean by ordered and sorted in collections in java?

1036


What is Applet Stub Interface ?

2558


Explain JMS in detail.

1065


What is a method header?

1072


How many bytes is a unicode character?

1057


How do you remove an object from an arraylist in java?

1033


What is difference between == and === in js?

1060


Tell us something about set interface.

1065


What are the differences between Java 1.0 and Java 2.0?

2343


What is the access scope of a protected method?

1076


What is externalizable interface?

1140