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 |
While opening the file, what type of exceptions can be caught?
Can a main method be overloaded?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
Why can't we use static class instead of singleton?
What is a programming object?
What is the size of an array?
What is the order of arraylist in java?
Is singleton set an interval?
What is e in java?
What are the three parts of a lambda expression? What is the type of lambda expression?
What is meant by data hiding/encapsulation?
What are computer functions?