aspose file tools*
The moose likes Beginning Java and the fly likes int length=343  is 343 an integer literal or decimal literal??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "int length=343  is 343 an integer literal or decimal literal???" Watch "int length=343  is 343 an integer literal or decimal literal???" New topic
Author

int length=343 is 343 an integer literal or decimal literal???

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1056

int length=343 is it decimal or integer literal

its given in the book as an decimal example ,if it is decimal then how cum it doesnot have a decimal point??


http://www.lifesbizzare.blogspot.com || OCJP:81%
Rohit Aggarawal
Ranch Hand

Joined: Jun 26, 2009
Posts: 39
Numeric value is same for both and that's why it is treated as the decimal literal.


SCJP 6.0
SCBCD for JEE 5

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40079
    
  28
It means "decimal" as opposed to octal binary and hexadecimal.
It doesn't mean "decimal fraction".
 
 
subject: int length=343 is 343 an integer literal or decimal literal???