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 / kssrk ramesh

forget about implementing the interface
First of all can we can not have two similar method names
only with return type as different.As per overloaded method
concept it is not acceptable.So inorder to implement the
interfaces we need to do like that which is not acceptable
as per overloaded methods principle and hence compilation
error.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of runnable interface?

1234


Is cout buffered?

1230


Can we have multiple catch block for a try block?

1066


What do you mean by scope of variable?

939


How do you change an int to a string?

1060


What is the method to expand and collapse nodes in a jtree?

1097


What is jrmp?

1004


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2890


How do you use nextline in java?

1023


What is another word for methodology?

1076


What is the importance of finally block in exception handling?

1083


What are three types of loops in java?

1196


Is the empty set a singleton?

1029


What is default locale java?

1177


Explain the available thread states in a high-level?

1009