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 |
Different types of modifiers?
Can we call virtual funciton in a constructor ?
What about anonymous inner classes in java?
How to perform bubble sort in java?
What is the default value of byte datatype in java?
What is the list interface?
How do you convert an int to a string in java?
Can static methods be inherited?
What is a lightweight component?
Say any two properties in beans?
How will you communicate between two applets?
Difference String and String Buffer