Core Language interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Primitive type?

Junior
  1. A.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
  2. B.a 16-bit unsigned primitive that stores a single UTF-16 code unit
  3. 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
  4. 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
  1. A.Integer cache
  2. B.Wrapper class
  3. C.Primitive type
  4. D.Autoboxing

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. 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
  2. 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
  3. 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
  4. 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
  1. A.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
  2. B.the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
  3. C.an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
  4. 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
  1. A.Integer cache
  2. B.long
  3. C.Wrapper class
  4. D.int

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Wrapper class — a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
  2. 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
  3. C.Wrapper class — a 32-bit signed integer primitive with a range of about minus two billion to two billion
  4. 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
  1. A.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
  2. B.a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
  3. C.the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
  4. 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
  1. A.Autoboxing
  2. B.long
  3. C.char
  4. D.int

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. 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
  2. B.Autoboxing — a 16-bit unsigned primitive that stores a single UTF-16 code unit
  3. C.Autoboxing — the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
  4. 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
  1. A.a 16-bit unsigned primitive that stores a single UTF-16 code unit
  2. B.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
  3. C.an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
  4. 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
  1. A.Autoboxing
  2. B.int
  3. C.Primitive type
  4. D.char

Answer + AI explanation with Pro

12. Which statement is correct?

Junior
  1. 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
  2. B.int — a 32-bit signed integer primitive with a range of about minus two billion to two billion
  3. C.int — a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
  4. 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
  1. A.a 16-bit unsigned primitive that stores a single UTF-16 code unit
  2. B.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
  3. 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
  4. 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
  1. A.Autoboxing
  2. B.long
  3. C.Primitive type
  4. D.char

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. 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
  2. B.long — a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
  3. C.long — a 32-bit signed integer primitive with a range of about minus two billion to two billion
  4. 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
  1. A.a built-in value type like int or boolean that is not an object and holds its value directly on the stack
  2. B.a 16-bit unsigned primitive that stores a single UTF-16 code unit
  3. 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
  4. 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
  1. A.Primitive type
  2. B.char
  3. C.Integer cache
  4. D.int

Answer + AI explanation with Pro

18. Which statement is correct?

Mid
  1. A.char — a 32-bit signed integer primitive with a range of about minus two billion to two billion
  2. B.char — the automatic conversion the compiler performs between a primitive and its corresponding wrapper object, e.g. assigning an int to an Integer
  3. C.char — a built-in value type like int or boolean that is not an object and holds its value directly on the stack
  4. 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
  1. A.a 64-bit signed integer primitive used when values exceed the 32-bit range, written with an L suffix
  2. B.an object form of a primitive, such as Integer for int or Boolean for boolean, used where objects are required like in collections
  3. C.a 16-bit unsigned primitive that stores a single UTF-16 code unit
  4. 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
  1. A.Autoboxing
  2. B.Primitive type
  3. C.char
  4. D.Integer cache

Answer + AI explanation with Pro

21. Which statement is correct?

Senior
  1. 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
  2. B.Integer cache — a 16-bit unsigned primitive that stores a single UTF-16 code unit
  3. 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
  4. 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.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers