MCQOPTIONS
Bookmark
Saved Bookmarks
→
Java Programming
→
Exceptions
→
The "switch" selection structure must end with the...
1.
The "switch" selection structure must end with the default case.
A.
True
B.
False
Answer» C.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
The == operator can be used to compare two String objects. The result is always true if the two strings are identical.
Objects of a subclass can be assigned to a super class reference.
Objects of a super class can always be assigned to a subclass reference.
An individual array element from an array of type int, when passed to a method is passed by value.
An array in the Java programming language has the ability to store many different types of values.
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 = ' uface';
public interface Foo { int k = 4; /* Line 3 */ } Which three piece of codes are equivalent to line 3? 1.final int k = 4; 2.public int k = 4; 3.static int k = 4; 4.abstract int k = 4; 5.volatile int k = 4; 6.protected int k = 4;
Which three are legal array declarations? 1.int [] myScores []; 2.char [] myChars; 3.int [6] myScores; 4.Dog myDogs []; 5.Dog myDogs [7];
Which four options describe the correct default values for array elements of the types indicated? 1.int -> 0 2.String -> "null" 3.Dog -> null 4.char -> ' u0000' 5.float -> 0.0f 6.boolean -> true
consider the statement "x = (a > b) ? a : b"; then the value of x is 27, if a = 18 and b = 27.
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies