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 meant by design patterns?

1021


Discuss 2D arrays.

1042


Is it possible to override the main method?

974


What is a byte string?

1090


Can a top level class be private or protected?

1050


What are thread groups?

996


What are the important features of Java 9 release?

992


What is a stringbuilder?

903


What is string made of?

950


How do you join strings in java?

1044


Which class represents the socket that both the client and server use to communicate with each other?

1029


How does hashmap work in java ?

1042


How does arraylist work in java?

1109


What is the difference between an if statement and a switch statement?

1158


How will you add panel to a frame?

1105