MCQOPTIONS
Bookmark
Saved Bookmarks
→
Java Programming
→
Exceptions
→
What is the numerical range of a char?
1.
What is the numerical range of a char?
A.
-128 to 127
B.
-(215) to (215) - 1
C.
0 to 32767
D.
D.
Answer» E.
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