简体   繁体   中英

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. 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. 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. 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. Can anyone explain the logic Behind this ?? Thanks in advance..

long l=435; //Complies and Run fine 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM