Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,它仍然可以使用 int 并成功打印吗?
这本 1997 年的“Java in a Nutshell”一书表明,在 JDK1.0 中就像这样(=重载):
http://docstore.mik.ua/orelly/java/javanut/ch24_52.htm
简短的回答是“是”——System.out.println()总是超载。
System.out.println()