BPSC TRE – Programming Languages & Web Technologies | Full Subject Test 1

Questions 41-45 of 80

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

Question 41

MCQ · Single Correct 1 mark

What is the default initial capacity of an ArrayList in Java when instantiated using the default constructor?

Answers for question 41

Question 42

MCQ · Single Correct 1 mark

Which keyword in Java is used by a method to explicitly throw an exception object to the caller?

Answers for question 42

Question 43

MCQ · Single Correct 1 mark

What is the purpose of the 'volatile' modifier in Java?

Answers for question 43

Question 44

MCQ · Single Correct 1 mark

In Java Garbage Collection, which method can be called to request the JVM to run garbage collection (though execution is not guaranteed)?

Answers for question 44

Question 45

MCQ · Single Correct 1 mark

Which Map implementation in Java maintains keys in ascending sorted order using Natural Ordering or a custom Comparator?

Answers for question 45
Scroll to Top