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

Can a class be private or protected in java?

999


What is a short in java?

962


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

912


How are this() and super() used with constructors in java programming?

1015


How can you read content from file in java?

962


What is treeset in java collection?

918


What is the difference between replace and replace all?

944


Which class is the superclass of all classes?

1053


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

943


What is a variable analysis?

1029


Explain about narrowing conversion in java?

958


what is optional in java 8?

1009


What do you mean by garbage collection used in java?

1011


What are runtime exceptions?

1109


What is treeset in java?

941