在 java 中定义和声明了哪个包中的新运算符?
In which package new operator is defined and declared in java?
与Java一样,一切都是class。新关键字是否也存在 java 文件?如果有,请告知包名。
As in Java, everything is class.
不,不一定。
Is there a java file present for new keyword also?
不,没有。关键字和运算符不是 class,它们是语言中使用的保留字或符号。它们不是对象。
new
是运算符和关键字。 return
、public
等关键字没有 class,+
运算符也没有 class。
至于原语包装器 class,例如:Float, Double, Long, Boolean, Character, Byte, Short, Integer
,它们是原语的 class 形式,比它们各自的原语具有更多的功能,可以用于数据之类的东西结构,但这仅适用于基元。 new
不是原语。
与Java一样,一切都是class。新关键字是否也存在 java 文件?如果有,请告知包名。
As in Java, everything is class.
不,不一定。
Is there a java file present for new keyword also?
不,没有。关键字和运算符不是 class,它们是语言中使用的保留字或符号。它们不是对象。
new
是运算符和关键字。 return
、public
等关键字没有 class,+
运算符也没有 class。
至于原语包装器 class,例如:Float, Double, Long, Boolean, Character, Byte, Short, Integer
,它们是原语的 class 形式,比它们各自的原语具有更多的功能,可以用于数据之类的东西结构,但这仅适用于基元。 new
不是原语。