answersLogoWhite

0


Best Answer

False. Overloaded methods must have different parameters defined.

A different return type alone would not help the compiler determine which method to choose at compile time.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: You can overload methods with differences only in their return type?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you use two or more run methods for a single thread in same method?

No. Each thread can have only one run method. You can overload the run method because it is just another java method but only the default run method with void return type will get called when you start the thread


Who transforms devastaor?

Rampage, Scrapper, Mixmaster,Long Haul, Hightower, Scavenger & for Overload was only in the game & the movie, not the toy.But if you buy the Overload toy you can switch out Scavenger as the waste and give the waste to Overload!


Why would an inverter overload a circuit?

The only way an Inverter could overload a circuit would be on the supply side. The fusing/protection for the inverter is incorrect.


What is a phase overload relay?

only the single phase monitored at which it installed


Difference between overload relay and over current relay?

due to the extension of loads they are using the relays for protection.........


Why is there only allowed one skate profile?

because they dont want to overload it


How does a thermal overload control a circuit when the phase short to ground?

If you are describing a circuit breaker then its electromagnetic trip component will operate in the event of a line*-to-ground (*not 'phase'!) short circuit. The thermal overload component will only operate in the event of a sustained overload.


Difference in using a method that return value and method that does not return value in object orinted programming?

A method that return a value should have a return statement. The method signature should indicate the type of return value. While in the case of a method that does not return a value should not have a return statement and in the signature, the return type is void. When using a method that doesn't return a value, a programmer can not get a value from that function, but instead, it can only change variable values and run other methods.


Can you work out every day for a week as a one off?

yes but only if you dont overload your muscles


Are there major differences in gay and straight men?

No, there are only minor differences.


How will you overload a template function?

The only reason to overload a template function is to provide an overload that differs in the number and type of arguments that cannot be addressed by the template function alone. You simply declare them as you would any other overload. The overloads may themselves be template functions, but there must be no ambiguity: every template function must generate an unique function signature. Remember that template functions generate overloads at compile time on an as-required basis.


What is the providing of too much information which makes processing absorbing and validating it difficult?

Information overload occurs when there is an excessive amount of information that makes it challenging to process, understand, and validate. This can lead to cognitive overload, decreased comprehension, and difficulty in making decisions or taking action based on the information provided. To avoid information overload, it's important to focus on quality over quantity and provide only essential and relevant information.