BPSC TRE – Java Programming & OOP Concepts | Test 2

Questions 21-25 of 50

0% completed (0/50 answered)
Your score 0/50 0 answered
Correct 0 Incorrect 0 Unanswered 50 Accuracy 0%

Question 21

MCQ · Single Correct 1 mark

What design pattern guarantees that a class has only one instance and provides a global point of access to that instance in Java?

Answers for question 21

Question 22

MCQ · Single Correct 1 mark

Introduced in Java 14/16, what restricted class type is designed to act as transparent, immutable data carriers with auto-generated getters, equals(), hashCode(), and toString()?

Answers for question 22

Question 23

MCQ · Single Correct 1 mark

In Java 17, which keyword is used to restrict which other classes or interfaces may extend or implement a class?

Answers for question 23

Question 24

MCQ · Single Correct 1 mark

Which java.util Collection interface does NOT allow duplicate elements and models the mathematical set abstraction?

Answers for question 24

Question 25

MCQ · Single Correct 1 mark

Which collection implementation in java.util provides a thread-safe variant of ArrayList where all mutative operations (add, set) are implemented by making a fresh copy?

Answers for question 25
Scroll to Top