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 / menita

interface A
{
String test();
}

interface B
{
int test();
}


public class AB implements B

{

A obj1 = new A(){
public String test()
{
return "";
}
};
public int test()
{
return 0;
}
}

Is This Answer Correct ?    7 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stringwriter?

958


If you do not want your class to be inherited by any other class. What would you do?

1008


What are the advantages of functions?

921


Why is core java important?

1047


What is boolean law?

1070


What is bufferedreader in java?

1053


What is jrmp?

968


Difference between keyword and identifier.

1039


What is the collections api?

1057


Is array passed by reference in java?

1032


Explain what do you mean by functional overloading in java?

1023


What are keywords and reserved words in java?

1063


Differentiate storage classes on the basis of their scope?

1171


What does next mean in java?

974


Can a static member function access member variable of an object?

1011