order « byte « Java Data Type Q&A

1. Is encapsulating Strings as byte[] in order to save memory overkill ? (Java)    stackoverflow.com

Was recently reviewing some Java Swing code and saw this:

byte[] fooReference;

String getFoo() {
   returns new String(fooReference); 

void setFoo(String foo) {
  this.fooReference = foo.getBytes();
The above can be useful to ...

2. Java little endian order    stackoverflow.com

I need to store data as LITTLE_ENDIAN instead of default BIG_ENDIAN. Here's my sample code:

for (int i = 0; i < logo.length; i++) {
  logoArray[i] = ((Integer) logo[i]).byteValue();

  logoArray[i] = ...