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 variable argument in java?

1008


How do you remove spaces in java?

1033


Define immutable object?

1063


What advantage do java's layout managers provide over traditional windowing systems?

957


What is passing parameters in java?

1043


What is a void in java?

1172


How can you write a loop indefinitely in java programming?

1029


Can we create constructor in abstract class ?

1059


What is meant by inheritance and what are its advantages?

1107


How to use string tokenizer class.

1209


What is sortedmap interface?

999


Is java written in c?

961


What is the largest data type in java?

972


What is a default method?

1053


What is vector capacity in java?

1085