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 |
What is difference between path and classpath variables?
What is array class in java?
What is JAVA? Why it is platform independent?
How do you start a new line in java?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
wht is mean by dirty read?
What is difference between identifier and variable?
What is an Applet ?
What are the 7 types of characters?
How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size
What does string mean in java?
Are functions objects in java?