×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Video Lectures
51 .
Which of the following are java reserved keywords ?
1.run
2.import
3.default
4.implement
A.
1 and 2
B.
2 and 3
C.
3 and 4
D.
2 and 4
View Answer
Ans: 2 and 3
52 .
Which of these is an incorrect statement ?
A.
It is necessary to use new operator to initialize an array.
B.
Array can be initialize using comma separated expressions surrounded by curly braces.
C.
Array can be initialized when they declared.
D.
None of the mentioned.
View Answer
Ans: It is necessary to use new operator to initialize an array.
53 .
Which will legally declare, construct, and initialize an array ?
A.
int 2,3};
B.
int 2);
C.
int myList 2);
D.
int myList
View Answer
Ans: int myList
54 .
Which will legally declare, construct, and initialize an array ?
A.
int 2,3};
B.
int 2);
C.
int myList 2);
D.
int myList
View Answer
Ans: int myList
55 .
Which 3 are valid declarations of a char ?
A) char c1=064770;
B) char c2=face;
C)char c3= 0xbeef;
D)char c4 = u0022;
E)char c5 =iface; F) char c6=uface;
A.
A,B,D
B.
A,C,F
C.
C,E
D.
E Only
View Answer
Ans: A,C,F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16