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

What is Co-Variant return type in method overriding?

Answer Posted / harini

If the parent class method return type is object then child
class method return type need not be object. We can take
its child classes also.
The co-varient return types of no. class are
Byte/short/integer/long/float/double.
ex:
object-----string ----valid
number-----integer----valid
string------object----invalid

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you check if a number is a perfect square?

992


Differentiate between the constructors and methods in java?

947


How is final different from finally and finalize?

927


How hashset works internally in java?

1096


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

1025


What is append in java?

1166


How do I get 64 bit java?

1113


How will you communicate between two applets?

1169


What will be the output of round(3.7) and ceil(3.7)?

1121


What is the output of the below java program?

1048


Can we overload run() method in java?

1205


How do you find the maximum number from an array without comparing and sorting?

1123


What is the benefit of inner / nested classes ?

988


What is the byte range?

1034


What is not object oriented programming?

949