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 |
What is java string pool?
Why transient variables wont participate in serialization?
What is defined as false sharing in the context of multithreading?
Write a java program that prints all the values given at command-line.
What is == and === in javascript?
what is the purpose of using rmisecuritymanager in rmi?
Is it safe for adding 10,00,000 records/objects to HashMap?, i.e is it safe to add millions of objects to HashMap?
Which class has no duplicate elements?
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.....
What is use of inner class in java?
Which variables are stored in stack?
Can private method static?