| Author |
int length=343 is 343 an integer literal or decimal literal???
|
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 973
|
|
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: 37
|
|
|
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: 32712
|
|
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???
|
|
|