What is Co-Variant return type in method overriding?
Answer Posted / 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 |
Post New Answer View All Answers
How many types of memory areas are allocated by JVM in java?
How do you check if a number is a perfect square?
Can we start a thread twice in java?
How to reverse string in java?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification
How does multithreading take place on a computer with a single cpu?
What is the epoch date?
Can a class declared as private be accessed outside it’s package?
How we can generate random numbers in java?
What do bitwise operators do?
What is difference between this and super keyword?
What do you understand by java virtual machine?
Write a program to print 15 random numbers using foreach of java 8?
What are the two ways to create a thread?
Are private methods final?