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

While opening the file, what type of exceptions can be caught?

3 Answers  


Can a main method be overloaded?

0 Answers  


Can we modify the throws clause of the superclass method while overriding it in the subclass?

0 Answers  


Why can't we use static class instead of singleton?

0 Answers  


What is a programming object?

0 Answers  


What is the size of an array?

0 Answers  


What is the order of arraylist in java?

0 Answers  


Is singleton set an interval?

0 Answers  


What is e in java?

0 Answers  


What are the three parts of a lambda expression? What is the type of lambda expression?

0 Answers  


What is meant by data hiding/encapsulation?

0 Answers   Cyient,


What are computer functions?

0 Answers  


Categories