Can anyone tell the Difference between Empty String and Null String
Arjun_Sarankulu
-3
Junior Poster
Recommended Answers
Jump to PostString myString1 = null; // null string String myString2 = ""; // Empty string
In the first case, there is no object assigned to the string. You can't call any of the string methods on it.
In the second case, there is an object, it just …
All 4 Replies
Momerath
1,327
Nearly a Senior Poster
Featured Poster
Arjun_Sarankulu
-3
Junior Poster
pcfunia
0
Newbie Poster
Momerath
1,327
Nearly a Senior Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.