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 are the ways in which a thread can enter the waiting state?

726


Is 0 true or false?

736


What is null statement?

785


What are the wrapped, classes?

814


Difference between static and dynamic class loading.

819


What is string in java? String is a data type?

783


which pattern is default in scanner package?

2016


how to create multithreaded program? Explain different ways of using thread? : Java thread

755


Can I declare class as static or private?

767


hr interview how many minutes asking question

1829


Is set ordered?

758


Why Java doesn’t support multiple inheritance?

831


What is double data type?

748


What is the public method modifier?

771


What is hashset in java?

797