简体   繁体   English

为什么我们在Java中不需要很长的后缀?

[英]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.

相关问题 为什么在Java的文件操作中不需要i ++? - Why we don't need i++ in File Operation in java? 为什么不为短类型添加“ s”后缀? - Why don't we add an “s” suffix to short types? 为什么我们不需要与StampedLock挥发? - Why don't we need volatile with StampedLock? 在Java中,为什么在我们定义一个接口时不需要将其标记为抽象? - In Java, why don't we need to mark a class as abstract when we define an interface in it? 为什么编译器需要.java后缀,但解释器不需要.class后缀? - Why compiler needs .java suffix but interpreter doesn't need .class suffix? 为什么我们不需要实现Serializable即可序列化为xml - Why we don't need to implement Serializable to serialize to xml 为什么我们不使用带有“ java”命令的.class扩展名? - Why don't we use the .class extension with “java” command? 如果我们检查 head==null 为什么不在 Java 链表中检查 tail==null 呢? - If we check head==null why don't we check tail==null in Java linkedlist? 在使用Couchbase Java SDK时,为什么我们不提供用户名,为什么密码不起作用? - While using Couchbase Java SDK, why don't we provide a username and why doesn't password work? 如何通过java发送日历邀请,这样我们就不需要打开.ics文件了 - How to send a calendar invite through java , so that we don't need to open .ics file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM