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 |
Explain reverse a linked list iterative solution in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
Does java trim remove newline?
How strings are created in java?
What is an immutable class?
Is int primitive data type?
Explain serialization and deserialization in java?
Explain method overloading?
What is the difference between a loader and a compiler?
What are the Object and Class that classes used for?
How many types of syncronization?
Which data type is class in java?