File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Overheads using short datatype Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Overheads using short datatype" Watch "Overheads using short datatype" New topic
Author

Overheads using short datatype

rakesh nagar
Greenhorn

Joined: Aug 02, 2001
Posts: 17
Hi there,
I have a requirement for declaring an int constant. The value of constant is less than 10. I am using short datatype for storing this constant value.
Could you please tell me if there are some performance overheads of using short over int datatype.
Thanks & regards,
Rakesh Nagar
------------------
Sean MacLean
author
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
This seems like a good question for the knowledgable folks in the Performance forum, so I'm moving this question there.
Sean
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Overheads using short datatype