21 Core Language questions from the Java bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
B.a 16-bit unsigned primitive that stores a single UTF-16 code unit
C.a JVM optimization that reuses cached wrapper objects for small values from minus 128 to 127, which can make == appear to work for those values
D.a 32-bit signed integer primitive with a range of about minus two billion to two billion
Answer + AI explanation with Pro
2. Which term means: "a built-in value type like int or boolean that is not an object and holds its value directly on the stack"?
Junior
A.Integer cache
B.Wrapper class
C.Primitive type
D.Autoboxing
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Primitive type — a JVM optimization that reuses cached wrapper objects for small values from minus 128 to 127, which can make == appear to work for those values
B.Primitive type — an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
C.Primitive type — the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
D.Primitive type — a built-in value type like int or boolean that is not an object and holds its value directly on the stack
Answer + AI explanation with Pro
4. What is Wrapper class?
Junior
A.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
B.the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
C.an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
D.a 16-bit unsigned primitive that stores a single UTF-16 code unit
Answer + AI explanation with Pro
5. Which term means: "an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections"?
Junior
A.Integer cache
B.long
C.Wrapper class
D.int
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Wrapper class — a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
B.Wrapper class — an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
C.Wrapper class — a 32-bit signed integer primitive with a range of about minus two billion to two billion
D.Wrapper class — a JVM optimization that reuses cached wrapper objects for small values from minus 128 to 127, which can make == appear to work for those values
Answer + AI explanation with Pro
7. What is Autoboxing?
Mid
A.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
B.a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
C.the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
D.an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
Answer + AI explanation with Pro
8. Which term means: "the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer"?
Mid
A.Autoboxing
B.long
C.char
D.int
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Autoboxing — an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
B.Autoboxing — a 16-bit unsigned primitive that stores a single UTF-16 code unit
C.Autoboxing — the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
D.Autoboxing — a JVM optimization that reuses cached wrapper objects for small values from minus 128 to 127, which can make == appear to work for those values
Answer + AI explanation with Pro
10. What is int?
Junior
A.a 16-bit unsigned primitive that stores a single UTF-16 code unit
B.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
C.an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
D.a 32-bit signed integer primitive with a range of about minus two billion to two billion
Answer + AI explanation with Pro
11. Which term means: "a 32-bit signed integer primitive with a range of about minus two billion to two billion"?
Junior
A.Autoboxing
B.int
C.Primitive type
D.char
Answer + AI explanation with Pro
12. Which statement is correct?
Junior
A.int — a JVM optimization that reuses cached wrapper objects for small values from minus 128 to 127, which can make == appear to work for those values
B.int — a 32-bit signed integer primitive with a range of about minus two billion to two billion
C.int — a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
D.int — a 16-bit unsigned primitive that stores a single UTF-16 code unit
Answer + AI explanation with Pro
13. What is long?
Mid
A.a 16-bit unsigned primitive that stores a single UTF-16 code unit
B.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
C.a JVM optimization that reuses cached wrapper objects for small values from minus 128 to 127, which can make == appear to work for those values
D.a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
Answer + AI explanation with Pro
14. Which term means: "a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix"?
Mid
A.Autoboxing
B.long
C.Primitive type
D.char
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.long — an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
B.long — a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
C.long — a 32-bit signed integer primitive with a range of about minus two billion to two billion
D.long — the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
Answer + AI explanation with Pro
16. What is char?
Mid
A.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
B.a 16-bit unsigned primitive that stores a single UTF-16 code unit
C.a JVM optimization that reuses cached wrapper objects for small values from minus 128 to 127, which can make == appear to work for those values
D.an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
Answer + AI explanation with Pro
17. Which term means: "a 16-bit unsigned primitive that stores a single UTF-16 code unit"?
Mid
A.Primitive type
B.char
C.Integer cache
D.int
Answer + AI explanation with Pro
18. Which statement is correct?
Mid
A.char — a 32-bit signed integer primitive with a range of about minus two billion to two billion
B.char — the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
C.char — a built-in value type like int or boolean that is not an object and holds its value directly on the stack
D.char — a 16-bit unsigned primitive that stores a single UTF-16 code unit
Answer + AI explanation with Pro
19. What is Integer cache?
Senior
A.a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
B.an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
C.a 16-bit unsigned primitive that stores a single UTF-16 code unit
D.a JVM optimization that reuses cached wrapper objects for small values from minus 128 to 127, which can make == appear to work for those values
Answer + AI explanation with Pro
20. Which term means: "a JVM optimization that reuses cached wrapper objects for small values from minus 128 to 127, which can make == appear to work for those values"?
Senior
A.Autoboxing
B.Primitive type
C.char
D.Integer cache
Answer + AI explanation with Pro
21. Which statement is correct?
Senior
A.Integer cache — the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
B.Integer cache — a 16-bit unsigned primitive that stores a single UTF-16 code unit
C.Integer cache — a built-in value type like int or boolean that is not an object and holds its value directly on the stack
D.Integer cache — a JVM optimization that reuses cached wrapper objects for small values from minus 128 to 127, which can make == appear to work for those values
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Core Language question come with Pro.