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?



What is Co-Variant return type in method overriding?..

Answer / 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

More Core Java Interview Questions

i would like to attend for an interview of datalab technologies company i want to know the pattern of imnterview.

0 Answers  


Can we define private and protected modifiers for variables in interfaces?

0 Answers  


What is double checked locking in singleton?

0 Answers  


What do you understand by copy constructor in java?

0 Answers  


Can java program run without jre?

0 Answers  


What is the main difference between java platform and other platforms?

0 Answers  


What are data structures in java?

0 Answers  


What are default methods ?

0 Answers  


what is ennumaration?

2 Answers   Amdocs,


Explain covariant method overriding in java.

0 Answers  


What are the ways to instantiate the class class?

0 Answers  


Which api is provided by java for operations on set of objects?

0 Answers  


Categories