How come the following doesn't throw a runtime exception on the first
iteration? 

String temp = null;
for (int i = 0; i < 3; i++) {
        temp += "hello";
}

It doesn't seem like you should be able to append anything to a NULL string.
The following is printed:

        nullhellohellohello


_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to