There are 2 methods in a class. Both have the same method
signature except for return types. Is this overloading or
overriding or what is it?

Answer Posted / vikneswarank

Its a overLoading .because overriding have two diff class
and return type also same

but overloading have one class,and it have same method name
and diff signature.

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why constructor has no return type?

634


What is entry in java?

527


Which methods cannot be overridden in java?

532


what is an objects lock and which objects have locks? : Java thread

524


What is break and continue statement?

611






What is the memory leak in java?

522


What is difference between static variable and global variable?

542


What is a singleton puppy?

524


What does sprintf mean?

525


What is the main use of generics in java?

504


Why arraylist is not synchronized in java example?

463


What is a local class in java?

579


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

593


What is array command?

551


Is it possible for a yielded thread to get chance for its execution again?

505