
Java Strings
Authored by Shravya R
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following snippet?
Hello Java
Java Hello
Hello
String cannot be modified.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a method of String class?
charAt()
getChars()
getString()
toCharArray()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Strings in Java can be created using:
String
StringBuffer
StringBuilder
All of these
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To which package does the string class belong to?
java.io
java.util
java.lang
javax.conn
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given this snippet , char chars[] = { 'a', 'b', 'c', 'd', 'e', 'f' };
String s = new String(chars, 2, 3);
What is the value of s?
abc
cde
bc
def
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
byte ascii[] = {65, 66, 67};
String s1 = new String(ascii);
What is the value of s1?
656657
67
ABC
abc
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
toString() belongs to ------- class?
String
Scanner
Object
Main
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
Python Yazılım Dilleri Soruları
Quiz
•
University
15 questions
python basics
Quiz
•
11th Grade - University
15 questions
Шаблоны проектирования
Quiz
•
University
10 questions
Què has après sobre el web ?
Quiz
•
University
15 questions
PROBLEM SOLVING USING R UNIT I MCQS
Quiz
•
University
10 questions
TIU Quiz-9
Quiz
•
University
12 questions
Javascript
Quiz
•
University
10 questions
Основы Интернета и Веба
Quiz
•
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