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 are the advantages of inner classes?

1020


Why are functions called methods in java?

993


What is volatile keyword in java

1112


Write a java program to generate fibonacci series ?

1062


What is method in java with example?

941


Can we have multiple classes in a single file?

969


Which class should you use to obtain design information about an object in java programming?

1067


Why are there no global variables in java?

1041


How can you set the applet size?

1049


what is singleton in java?

1042


In a container there are 5 components. I want to display the all the components names, how will you do that one?

1036


What is java jit compilers?

1002


Explain the difference between the public, private, final, protected, and default modifiers?

1036


What is variable in java?

980


What do you mean by an interface in java?

1021