
JAVA - Day2

Quiz
•
Information Technology (IT)
•
University
•
Hard
Chitra Muthu
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is immutable in Java?
String
StringBuffer
StringBuilder
Both B and C
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will be the output of the following code?
String s1 = "Hello";
String s2 = "Hello";
System.out.println(s1 == s2);
true
false
Compilation error
Runtime error
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is used to create a mutable string in Java?
String
StringBuffer
StringBuilder
Both B and C
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which method is used to get the length of a string?
size()
length()
getSize()
getLength()
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is thread-safe?
String
StringBuffer
StringBuilder
Both A and B
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will be the output of the following code?
String s = "Java";
s.concat("Programming");
System.out.println(s);
JavaProgramming
Java
Compilation Error
Runtime Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following class provides fast and efficient string modification?
String
StringBuffer
StringBuilder
Both B and C
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
General ExpressJS Quiz

Quiz
•
University
10 questions
Bienvenida Santo Domingo

Quiz
•
University
15 questions
Python Basics Quiz

Quiz
•
University
10 questions
Refresher Kapitel 2

Quiz
•
University
10 questions
3F_14042025_Verifica per orale Informatica

Quiz
•
11th Grade - University
15 questions
Quiz Pemrograman Arduino

Quiz
•
10th Grade - University
15 questions
Join by Madi

Quiz
•
University
17 questions
JavaScript Quiz III

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University