[英]why don't we need suffix on long in java?
While writing some code I noticed that long(primitive) data type does not need to have the suffix l or L. My code compiles and run fine with this.在编写一些代码时,我注意到long(原始)数据类型不需要后缀l或L。我的代码可以编译并正常运行。 Can anyone explain the logic Behind this ??
谁能解释这个背后的逻辑? Thanks in advance..
提前致谢..
long l=435; //Complies and Run fine
While writing some code I noticed that long(primitive) data type does not need to have the suffix l or L. My code compiles and run fine with this.在编写一些代码时,我注意到long(原始)数据类型不需要后缀l或L。我的代码可以编译并正常运行。 Can anyone explain the logic Behind this ??
谁能解释这个背后的逻辑? Thanks in advance..
提前致谢..
long l=435; //Complies and Run fine
While writing some code I noticed that long(primitive) data type does not need to have the suffix l or L. My code compiles and run fine with this.在编写一些代码时,我注意到long(原始)数据类型不需要后缀l或L。我的代码可以编译并正常运行。 Can anyone explain the logic Behind this ??
谁能解释这个背后的逻辑? Thanks in advance..
提前致谢..
long l=435; //Complies and Run fine
While writing some code I noticed that long(primitive) data type does not need to have the suffix l or L. My code compiles and run fine with this.在编写一些代码时,我注意到long(原始)数据类型不需要后缀l或L。我的代码可以编译并正常运行。 Can anyone explain the logic Behind this ??
谁能解释这个背后的逻辑? Thanks in advance..
提前致谢..
long l=435; //Complies and Run fine
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.