I am just starting out with Java. But I had a big puzzle when I am in the first chapter.
It says that we have to "initialize" the handle when we are creating one, like String s = "asdf",
And later it says we have create a new object for the String s again, String s = new String("asdf");
I think the String s already has an object (asdf) in the "initialization, but why we still have to re-create it again(if I am understanding it right)?
Hope someone can explain this more to me, in book it is just skipped. Thanks a lot.
kenadams commented: Yeah, now I kinda figured that out.. But really I didn't realise that the book is trying to show me two different examples for a same case...Maybe I took a leap in picking a Java book for myself XD +0