您好,我正在阅读有关 java 类型转换的内容,因此我在 Oracle 制作的《Java 语言规范》一书中找到了这样的引用:
Method invocation conversion is applied to each argument in a method or constructor invocation and, except in one case, performs the same conversions that assignment conversion does.
那么有人可以告诉我什么是异常(exception)情况吗?
最佳答案
Method invocation conversions specifically do not include the implicit narrowing of integer constants which is part of assignment conversion (§5.2). The designers of the Java programming language felt that including these implicit narrowing conversions would add additional complexity to the overloaded method matching resolution process (§15.12.2).
关于Java方法调用转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30543168/