KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
in my project ,Somewhere I have to use if n else condition to check the null variables String stringValue = null; String valueOf = String.valueOf(stringValue); but when i check the condition like if (valueOf == null) { System.out.println("in if"); } else { System.out.println("in else"); } then output is "in else" ,why this is happening?
Tags (comma-separated)
Save Edits
Cancel