
JAVA - Day2
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
Chitra Muthu
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
FO Dasar - Quiz
Quiz
•
11th Grade - University
12 questions
TcP252_k32_FQ1
Quiz
•
University
11 questions
TRẢ LỜI ĐÚNG - TRÚNG QUÀ COOL
Quiz
•
University
20 questions
quiziz 4 sumber media 2sda5
Quiz
•
University
16 questions
Sistematizacija gradiva IX
Quiz
•
9th Grade - University
20 questions
Diagnostico sobre Programación Orientada a Objetos
Quiz
•
University
10 questions
MP Pertemuan 05
Quiz
•
University
15 questions
แข่งขันcodingม.ปลาย
Quiz
•
12th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
