JAVA/J2EE Training: Strings

  • String objects are immutable in Java

Eg:

String msg=“Hello”;

msg+=“ World”;

/* Here the original String “Hello” is not changed. Instead a new String is created with the value (more…)

This content is restricted to site members. If you are an existing user, please log in. New users may register here.

Existing Users Log In
 Remember Me