![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
dear hiran. hope this will answer ur ques. :) case 1 : String s = new String(); case 2 : String s = ""; case 3 : String s = null; so for u, since u wanna check whether the returned string is null or not, or, u can use the first two ways. but check for the 'length' this kinda initialization thingeys is analoous to set theory. Replies: |
Sponsored Links
|