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
Win a copy of
Android Security Essentials Live Lessons
this week in the
Programmer Certification (SCJP/OCPJP)
octal values in int
Joined: Nov 15, 2004
Jul 06, 2005 02:41:00
int i1 = 07; ==> no error
int i2 = 08; ==> compiler error
int i3 = 09; ==> compiler error
int i4 = 010; ==> no error
Plese explain the above nature of output.
Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1
JSTL Tag Documentation
Joined: Mar 11, 2002
Jul 06, 2005 03:46:00
The valid octal numerals are 0,1,2,3,4,5,6 and 7.
So, you get an error when you try to assign something which is not a valid octal numeral.
I agree. Here's the link:
subject: octal values in int
Variable argument list in 1.5
A simple question about declearation of float
interger literals ?!!??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014