File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 1050

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: 36486
    
  16
It means "decimal" as opposed to octal binary and hexadecimal.
It doesn't mean "decimal fraction".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: int length=343 is 343 an integer literal or decimal literal???
 
Similar Threads
Conversion
Java double data type problem
legal statements
why the long value print 10 ,not 12 ?
Converting String to Integer without losing leading zero's