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.

Answers were Sorted based on User's Feedback



Interface A { String test(); } Interface B { int test(); } Create a class AB which must im..

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

Interface A { String test(); } Interface B { int test(); } Create a class AB which must im..

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

Interface A { String test(); } Interface B { int test(); } Create a class AB which must im..

Answer / srinivasa

Class AB Implements A,B{
String test(){
SOS("----");
}
int test(){
SOS("--------");
}
}

Is This Answer Correct ?    1 Yes 4 No

Interface A { String test(); } Interface B { int test(); } Create a class AB which must im..

Answer / niltarlekar

public class AB implements A,B
{
public static void main(String args[])
{

}
}

Is This Answer Correct ?    0 Yes 4 No

Interface A { String test(); } Interface B { int test(); } Create a class AB which must im..

Answer / sailaja

Interface A {
String test();
}

Interface B {
int test();
}

Class AB implements A,B
{
String test()
{
System.out.println("Test");
}
int test()
{ System.out.println("Test1");
}
}
Class Test
{
public static void main(String as[])
{
Interface i=null;

i=new AB();
i.test();
}
}

Is This Answer Correct ?    4 Yes 10 No

Interface A { String test(); } Interface B { int test(); } Create a class AB which must im..

Answer / nitin gupta

Menita you are absolutely correct!!

Is This Answer Correct ?    0 Yes 8 No

Interface A { String test(); } Interface B { int test(); } Create a class AB which must im..

Answer / sandeep vudutala

interface A
{
String test();
}

interface B extends interface A
{
int test();
}

public Class AB implements B

{

public String test()
{

}

public int test()
{
}

}

Is This Answer Correct ?    5 Yes 23 No

Post New Answer

More Core Java Interview Questions

Why main method is static in java?

0 Answers  


We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.

0 Answers   Symphony,


what is the difference between HashMap and Hashtable

17 Answers   Value Labs, Virtusa,


How do you compare objects in java?

0 Answers  


Can we call the run() method instead of start()?

0 Answers  


Explain creating threads by implementing runnable class?

0 Answers  


Can we pass a primitive type by reference in java? How

0 Answers  


What is the difference between keyword and identifier?

0 Answers  


What class allows you to read objects directly from a stream?

0 Answers  


Is null a keyword in java?

0 Answers  


How can you set the applet size?

0 Answers  


using equals method overriding which objects are compared?i.e same class objects or other class objects?Explain me.

4 Answers  


Categories