MCQsExam.com

JAVA

JAVA

Which keyword creates an immutable list in Java 9+?
  1. A-Arrays.asList()
  2. B-Collections.unmodifiableList()
  3. C-List.of()
  4. D-new ImmutableList<>()
  5. MCQ By: MCQSEXAM
  6. Computer Science MCQs / JAVA
  7. More about this MCQ
Which garbage-collector is low-latency in Java 17?
  1. A-Serial
  2. B-Parallel
  3. C-G1
  4. D-ZGC
  5. MCQ By: MCQSEXAM
  6. Computer Science MCQs / JAVA
  7. More about this MCQ
Which Java version introduced var keyword?
  1. A-8
  2. B-9
  3. C-10
  4. D-11
  5. MCQ By: MCQSEXAM
  6. Computer Science MCQs / JAVA
  7. More about this MCQ
In the context of functional programming, what is the Y-combinator used for?
  1. A-Memory allocation optimization
  2. B-Implementing recursion without named functions
  3. C-Type inference
  4. D-Lazy evaluation
  5. MCQ By: MCQSEXAM
  6. Computer Science MCQs / JAVA
  7. More about this MCQ