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

What is a java applet? What is an interface?

1105


Do I need java for windows 10?

1051


what is session in java?

1255


Which collections are thread safe in java?

932


What exceptions occur during serialization?

1098


How to declare an arraylist in java?

1124


What is an anonymous class in java?

1109


What are the types of collections in java?

1058


What do you know about the garbate collector?

1024


What are the actions that can occur when a thread enters blocked state?

1062


Is java still necessary?

1091


How is abstraction implemented in java ?

1026


explain the difference between jdk and jvm?

1007


Does java isempty check for null?

1008


How garbage collection is done in java?

1060