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...

There are 2 methods in a class. Both have the same method
signature except for return types. Is this overloading or
overriding or what is it?

Answer Posted / mohamed yehiya

If both signature are same, i.e parameters
and if the method has co-variant return type
which means return type of int in one method and
return type of long in another method.
Consider safely as the method is overloaded.

if otherwise it's neither overloaded or overrided
just an another method in the class.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You're given a Boolean 2D matrix, can you find the number of islands?

1116


Distinguish between a predicate and a function?

997


Explain serialization and deserialization in java?

1015


Which is better 64 bit or 32 bit?

948


Tell me how many ways are there to initialise an integer with a constant.

1115


What is the difference between sop and work instruction?

931


What is an exception? difference between Checked and Unchecked exception in Java

1019


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1299


How to declare an arraylist in java?

1124


Can a class extends itself in java?

1036


Which language is java?

991


what is the difference between yielding and sleeping? : Java thread

975


Explain java heap space and garbage collection?

1084


What is a protected void?

940


Why do we use predicate in java?

1060