
Java strings
Authored by Jamunadevi T
Computers
University
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In java, String is treated as
primitive type
object
wrapper class
abstract class
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String s=new String("TIH");
How many objects are created for the above statement in java?
0
1
2
3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not related to comparing Strings in java?
compare()
compareTo()
equals()
==
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method returns byte array of string?
bytes()
toBytes()
getBytes()
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following method returns a string by replacing all the sequence of characters matching the regex?
replace()
replaceAll()
Both
None
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
Listen in Python
Quiz
•
University
10 questions
Arquitetura IPv6
Quiz
•
1st Grade - University
10 questions
ITESA Roadmap Event 12-09-24
Quiz
•
University
10 questions
CSE-205-DCN-UNIT 6-QUIZ
Quiz
•
University
10 questions
Recursion Practice, Recursion Practice, Recursion Practice...
Quiz
•
10th Grade - University
10 questions
Overview of Java Web Development
Quiz
•
University
10 questions
PDS - 04225 Pointers & Dynamic Arrays - Chapter 8
Quiz
•
University - Professi...
10 questions
Chương trình máy tính và dữ liệu
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