*
The moose likes Beginning Java and the fly likes Is anything smaller than byte ...... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is anything smaller than byte ......" Watch "Is anything smaller than byte ......" New topic
Author

Is anything smaller than byte ......

Sandeep Kumar JakkarajuuuX
Greenhorn

Joined: Mar 11, 2009
Posts: 10
I mean is there anything like variable byte ...... like varchar
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38075
    
  22
Varchar (which I have only seen in databases) is larger than byte. There are no numbers smaller than byte in Java, no.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

A boolean may or may not be smaller than a byte - it's quite undefined.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is anything smaller than byte ......
 
Similar Threads
byte + byte = int?
Automatic promotion of Variables
confusion on casting
wrapper object
int divided by int