
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
Типы данных. Переменные. Операции в Java

Quiz
•
University
12 questions
Review loops

Quiz
•
8th Grade - University
20 questions
Pretest Alpro Dasar

Quiz
•
University
18 questions
Understanding Immutability and Strings

Quiz
•
University
15 questions
Python for loop/lists

Quiz
•
9th Grade - University
18 questions
Python Library Routines Quiz

Quiz
•
10th Grade - University
20 questions
2F-1 | Python Quiz | 14/10/2024

Quiz
•
University
15 questions
Quiz sobre el ornitorrinco y la programación

Quiz
•
8th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade