BPSC TRE – Java Programming & OOP Concepts | Test 2

Questions 1-5 of 50

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

Question 1

MCQ · Single Correct 1 mark

Which Java Collections Framework interface represents an ordered collection that allows duplicate elements and positional access via zero-based indexing?

Answers for question 1

Question 2

MCQ · Single Correct 1 mark

Which implementation of Map interface in Java maintains elements in a sorted order based on their keys' natural ordering or a custom Comparator?

Answers for question 2

Question 3

MCQ · Single Correct 1 mark

What is the time complexity of element lookup (get) in a well-distributed HashMap in Java under optimal conditions?

Answers for question 3

Question 4

MCQ · Single Correct 1 mark

In Java Generics, what does the wildcard expression '<? extends Number>' specify?

Answers for question 4

Question 5

MCQ · Single Correct 1 mark

What process does the Java compiler perform during compilation regarding Generics to maintain backward compatibility with older JVM versions?

Answers for question 5
Scroll to Top