Language Fundamentals on Java related Questions and Answers


Question :   Which is a valid declarations of a String?
1. String s1 = null;
2. String s2 = 'null';
3. String s3 = (String) 'abc';
4. String s4 = (String) '\ufeed';
Answer :   1 - String s1 = null;  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter