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
What is polymorphism java example?
What variables are stored in stack?
What is the intersection and union methods?
Why can we not override static method?
hr interview how many minutes asking question
what is function overloading in java?
What do you understand by the bean persistent property?
What are the different types of garbage collectors in java?
What are the procedures?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What is a type parameter in java?
What is public static void main?
What is instance example?
What is sizeof () operator?
What is replacefirst in java?