Can a method be overloaded based on different return type but same argument type?



Can a method be overloaded based on different return type but same argument type?..

Answer / Ghananand Yadav

No, methods in Java cannot be overloaded based solely on their return types. For successful overloading, the method signature (name and parameter list) must be unique.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is java string pool?

0 Answers  


Why transient variables wont participate in serialization?

2 Answers  


What is defined as false sharing in the context of multithreading?

1 Answers  


Write a java program that prints all the values given at command-line.

1 Answers  


What is == and === in javascript?

1 Answers  


what is the purpose of using rmisecuritymanager in rmi?

1 Answers  


Is it safe for adding 10,00,000 records/objects to HashMap?, i.e is it safe to add millions of objects to HashMap?

2 Answers  


Which class has no duplicate elements?

8 Answers  


There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple Inheritance? please anybody help me.....

5 Answers  


What is use of inner class in java?

1 Answers  


Which variables are stored in stack?

1 Answers  


Can private method static?

1 Answers  


Categories