Topic / 115 questions

Java MCQs

Page 3 of Java multiple-choice questions with answers. Tap an option to check yourself.

Page 3 of 6

Question 42 Java

What is the main difference between StringBuilder and StringBuffer in Java?

Correct answer D. StringBuffer methods are synchronized, StringBuilder methods are not

Open question
Advertisement
Advertisement
Advertisement
Question 59 Java

What does it mean to say that a Java String is immutable?

Correct answer A. Its character sequence cannot change after creation

Open question