
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
20 questions
03-JavaScript операторы, ветвление

Quiz
•
University
16 questions
VBA Quiz

Quiz
•
University
15 questions
Module 5: Creating Dynamic Web Pages with Scripting

Quiz
•
University
10 questions
java2/67

Quiz
•
12th Grade - University
20 questions
quiz1B1

Quiz
•
7th Grade - University
15 questions
Codean - JavaScript Variablel & Function

Quiz
•
University
15 questions
Mastering Express JS Concepts

Quiz
•
12th Grade - University
15 questions
Quiz Informatika Genap KLs 7

Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University