James Liu is a technical professional who has a lot of passion on software development, both technology and process.
String sub = new String( oldString.substring(0, 4) );
But still you can refer to oldString using the name oldString...oldString will still not be eligible for garbage collection, unless you make it null explicitly.
But still you can refer to oldString using the name oldString...
ReplyDeleteoldString will still not be eligible for garbage collection, unless you make it null explicitly.