Does Java virtual machine allow overloading on return type?
问题 I have gone through this presentation. Slide No:26 quote that Java language does not allow overloading on return type Java Virtual machine does allow overloading on return type Are these statements true? If both statements are true, how to make the code compilable so that jvm run the code? I have one SE question on this topic : Java - why no return type based method overloading? Thanks in advance. 回答1: These statements are perfectly true. Remember that Java is two things - one,a language and