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 the concatenation operator in java?
Where are the local variables stored?
What is a values collection view ?
What are the data types supported by java?
Why are there no global variables in java?
What is a predicate method?
why operator overloading is removed in java?
What is thread life cycle?
What is port number in java?
Can we have any code between try and catch blocks?
What is the difference between Error, defect,fault, failure and mistake?
What is use of inner class in java?