03-19-2009 08:30 AM
Not getting what you are asking can you explain little more what exactly "endian" means
03-19-2009 09:51 AM - edited 03-19-2009 09:53 AM
Don't think Java will let you know which way round this is. You can't read/write into a short, int or long variable so you shouldn't care anyway. Why do you want to know?
Edit: Fixed a typo.
03-19-2009 10:26 AM
It is not typical to worry about this in Java. However, you would need to know it if you are importing serialized integer data from another platform - but you would only need to know the endianess form the other platform. it is possible to convert this data (once you know how it was stored) without knowing how your Java platform stores the bytes.
The term "endian" is from Gullivers Travels. There were two groups of folks (Lilliputians) at war with each other: one group cracked their eggs form the little end, the other from the big end. hence "little endian" and "big endian".
In short, the term refers to byte or bit-order within a native integer type.
07-21-2012 10:37 PM