File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
int length=343 is 343 an integer literal or decimal literal???
Joined: Aug 01, 2009
Nov 23, 2009 03:32:58
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??
Joined: Jun 26, 2009
Nov 23, 2009 03:43:47
Numeric value is same for both and that's why it is treated as the decimal literal.
SCBCD for JEE 5
Joined: Oct 13, 2005
Nov 23, 2009 04:28:45
It means "decimal" as opposed to octal binary and hexadecimal.
It doesn't mean "decimal fraction".
I agree. Here's the link:
subject: int length=343 is 343 an integer literal or decimal literal???
Java double data type problem
why the long value print 10 ,not 12 ?
Converting String to Integer without losing leading zero's
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015