Question
a.
String s1 = null;
b.
String s2 = 'null';
c.
String s3 = (String) 'abc';
d.
String s4 = (String) '\ufeed';
Posted under Java Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which is a valid declarations of a String?
Similar Questions
Discover Related MCQs
Q. What is the numerical range of a char?
View solution
Q. Which one of the following will declare an array and initialize it with five numbers?
View solution
Q. Which is the valid declarations within an interface definition?
View solution
Q. Java was designed by _________________.
View solution
Q. Earlier name of Java Programming language was
View solution
Q. Which of the following personality is called as father of Java Programming language
View solution
Q. Why OAK was renamed to Java ?
View solution
Q. Java was publicly released in _______________ .
View solution
Q. Which kind of language java is ?
View solution
Q. In the beginning, Java was created in order to
View solution
Q. Java is a ________ programming language.
View solution
Q. Which of the following is/are correct advantage of java?
View solution
Q. In which year, Sun Microsystems released much of its Java virtual machine?
View solution
Q. After first public release java was targeted at ______________________.
View solution
Q. First public implementation of java was _____________
View solution
Q. Basic aim of java was to solve the problem of connecting many household machines together. The was achieved using
View solution
Q. Sun Microsystems released the first public implementation as Java 1.0 in?
View solution
Q. Java SE 15 version released on?
View solution
Q. Java Source Code is compiled into ______________.
View solution
Q. Enums were introduced in?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Microprocessor
Understand the heart of your computer with our Microprocessor MCQs. Topics include...
Java Programming
Level up your coding skills with our Java Programming MCQs. From object-oriented...