Question
1. char c1 = 064770;
2. char c2 = 'face';
3. char c3 = 0xbeef;
4. char c4 = \u0022;
5. char c5 = '\iface';
6. char c6 = '\uface';
a.
1, 2, 4
b.
1, 3, 6
c.
3, 5
d.
5 only
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 three are valid declarations of a char? 1. char c1 = 064770; 2. char c2 = 'face'; 3. char c3 = 0xbeef; 4. char c4 = \u0022; 5. char c5 = '\iface'; 6. char c6 =...
Similar Questions
Discover Related MCQs
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
Q. Which of the following is used to interpret and execute Java Applet Classes hosted by HTML.
View solution
Q. HTML based Java Documentary help can be accessed using ______________.
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!