This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Regarding String Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding String Object" Watch "Regarding String Object" New topic

Regarding String Object

surya.raaj prakash
Ranch Hand

Joined: Oct 30, 2009
Posts: 76
Hi Friends,
I'm new to Java Technology,please clarify my doubts.

Here the string variable is not references to any object(i.e null)so How I got the output result is null?
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

The println(String) method calls the print(String) method, actually includes a null argument as a special case -- it actually looks like

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Regarding String Object
It's not a secret anymore!