ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ CORE JAVA QUIZ CORE JAVA MCQ Questions CORE JAVA Questions Answer for Interview
English
Hindi
Question No. -
01
Report Bug
int x[] = new int[]{10,20,30}; Arrays can also be created and initialize as in above statement.
int x[] = new int[]{10,20,30}; Arrays can also be created and initialize as in above statement.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
02
Report Bug
In an instance method or a constructor, "this" is a reference to the current object.
In an instance method or a constructor, "this" is a reference to the current object.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
03
Report Bug
Garbage Collection is manual process.
Garbage Collection is manual process.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
04
Report Bug
The JRE deletes objects when it determines that they are no longer being used. This process is called Garbage Collection.
The JRE deletes objects when it determines that they are no longer being used. This process is called Garbage Collection.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
05
Report Bug
Constructor overloading is not possible in Java.
Constructor overloading is not possible in Java.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
06
Report Bug
Assignment operator is evaluated Left to Right.
Assignment operator is evaluated Left to Right.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
07
Report Bug
All binary operators except for the assignment operators are evaluated from Left to Right
All binary operators except for the assignment operators are evaluated from Left to Right
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
08
Report Bug
Java programming is not statically-typed, means all variables should not first be declared before they can be used.
Java programming is not statically-typed, means all variables should not first be declared before they can be used.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
09
Report Bug
In Java SE 7 and later, underscore characters "_" can appear anywhere between digits in a numerical literal
In Java SE 7 and later, underscore characters "_" can appear anywhere between digits in a numerical literal
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
10
Report Bug
Variable name can begin with a letter, "$", or "_".
Variable name can begin with a letter, "$", or "_".
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
11
Report Bug
Interfaces can be instantiated.
Interfaces can be instantiated.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
12
Report Bug
The modifiers public and static can be written in either order "public static" or "static public".
The modifiers public and static can be written in either order "public static" or "static public".
A.
TRUE
सही
B.
FALSE
गलत
Explanation
The modifiers public and static can only be written in order "public static"
Question No. -
13
Report Bug
A .class file contains bytecodes?
A .class file contains bytecodes?
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
14
Report Bug
James Gosling is father of Java?
James Gosling is father of Java?
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
15
Report Bug
Java technology is both a programming language and a platform.
Java technology is both a programming language and a platform.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
16
Report Bug
What is the range of short data type in Java?
What is the range of short data type in Java?
What is the range of short data type in Java?
A.
-128 to 127
-128 to 127
B.
-32768 to 32767
-32768 to 32767
C.
-2147483648 to 2147483647
-2147483648 to 2147483647
D.
None of these
None of these
Explanation
Short occupies 16 bits in memory. Its range is from -32768 to 32767.
Question No. -
17
Report Bug
What is the range of byte data type in Java?
What is the range of byte data type in Java?
A.
-128 to 127
-128 to 127
B.
-32768 to 32767
-32768 to 32767
C.
-2147483648 to 2147483647
-2147483648 to 2147483647
D.
None of these
None of these
Explanation
Byte occupies 8 bits in memory. Its range is from -128 to 127.
Question No. -
18
Report Bug
An expression involving byte, int, and literal numbers is promoted to which of these?
An expression involving byte, int, and literal numbers is promoted to which of these?
A.
int
int
B.
long
long
C.
byte
byte
D.
float
float
Explanation
An expression involving bytes, ints, shorts, literal numbers, the entire expression is promoted to int before any calculation is done.
Question No. -
19
Report Bug
Which of these literals can be contained in float data type variable?
Which of these literals can be contained in float data type variable?
A.
-1.7e+308
-1.7e+308
B.
-3.4e+038
-3.4e+038
C.
+1.7e+308
+1.7e+308
D.
-3.4e+050
-3.4e+050
Explanation
Range of float data type is -(3.4e38) To +(3.4e38)
Question No. -
20
Report Bug
Which data type value is returned by all transcendental math functions?
Which data type value is returned by all transcendental math functions?
A.
int
int
B.
float
float
C.
double
double
D.
long
long
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad