Originally Posted by
Cornix
Then dont use java, because with this attitude you wont get far with it. The java language has a certain philosophy, and what you just said is violating that philosophy quite heavily. Its just not the right language for you.
Even if you use a char array, there is no guarantee that you will use less ram. You might end up using more. Strings are optimized, JVM's are very different and might also be optimized to work better with Strings. The JIT might be optimized to use Strings better. There are too many factors to say anything certain about this.
But the result is that I cannot create a queue of 1000 elements of objects of the class I created, be they optimized or not.
I am not gonna become a java programmer, not now, but I now have to do my homework in Java, not any other language.