
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
MS Office
Quiz
•
University
10 questions
CC 105 - Quiz 2 FINAL TERM
Quiz
•
University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
Hyrje në SO
Quiz
•
University
10 questions
Hardware y software
Quiz
•
University
10 questions
Modulo 3. Interconexión de dispositivos
Quiz
•
University
10 questions
DES & AES in Cryptography
Quiz
•
University
10 questions
Q2 - Python
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