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

What is the use of bufferedreader?

532


Are constructors methods?

569


Difference between predicate, supplier and consumer ?

585


What is runtime polymorphism or dynamic method dispatch?

524


Is alive in java?

507






What is use of super keyword in java?

600


Detail discussions on JVM, memory management and garbage collector.

555


Why arraylist is not synchronized in java example?

471


What are pass by reference and pass by value?

529


what are three ways in which a thread can enter the waiting state? : Java thread

578


What happens when a thrown exception is not handled?

582


Why packages are used?

548


Can we rethrow the same exception from catch handler?

566


What is memory leak and how does java handle it?

525


Can java arraylist hold different types?

496