Explore topic-wise MCQs in Java.

This section includes 1 Mcqs, each offering curated multiple-choice questions to sharpen your Java knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of this method is used to make all elements of an equal to specified value?

A. add()
B. fill()
C. all()
D. set()
Answer» C. all()