Sunday, April 8, 2007

java's trouble

Innovations happen. It is it easy to adapt?



Java brought String class with powerful functions. But strings are immutable, thus keep taking more memory.



Later versions of Java bring StringBuffer, StringBuilder which are mutable.



But all the older (much used) classes still use String. What is the use of having the newer classes? It gives a very unpleasant experience for the programmer to keep converting every string into the new classes (StringBuffer..) and converting them back if needed to use the already existing functionalities (methods), which we do all the time.



Will the new flavours of the already existing classes come in ?





powered by performancing firefox

No comments: