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

Can a class be declared as static?

1164


How to write custom exception in java?

1046


Explain about object oriented programming and its features?

1012


What is static class

1110


Explain how to force the garbage collection in java.

963


What do you understand by the term string pool?

1000


What does null mean in java?

1064


How can we make a class virtual?

1110


What is the implementation of destroy method in java. Is it native or java code?

962


What is a boolean in java?

1048


What is a consumer in java?

1009


Why we used vector class?

1064


Can java run on google chrome?

1187


What are the pillars of java?

920


Explain the concept of proper inheritance?

1066