Java String Objects & Methods
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

11 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is NOT a primitive data type?
double,
float,
boolean,
String
Back
String
2.
FLASHCARD QUESTION
Front
Which of these operators can be used to concatenate two or more String objects? +, ++, +=, +-
Back
+
3.
FLASHCARD QUESTION
Front
Which data type gets returned from length() method in String class?
Back
int
4.
FLASHCARD QUESTION
Front
What is the value of len in the following code?
String s= "jump it";
int len = s.length();
Back
7
5.
FLASHCARD QUESTION
Front
Which method was used to convert this String: "Life is TOO SHORT to be BORED" to: "life is too short to be bored" ?
Back
toLowerCase()
6.
FLASHCARD QUESTION
Front
To which package does the string class belong to? Options: java.io, java.util, java.lang, javax.conn
Back
java.lang
7.
FLASHCARD QUESTION
Front
String s="quarantine";
int x = s.indexOf("a");
What is the value of x?
Back
2
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
6 questions
School Objects
Flashcard
•
KG
10 questions
Python - Slicing Strings - 2
Flashcard
•
12th Grade
15 questions
H Physics LT1-LT3
Flashcard
•
12th Grade
15 questions
Force Test
Flashcard
•
12th Grade
9 questions
Adv Algebra B Final Exam Review S1T2 2024 2025
Flashcard
•
11th Grade
10 questions
Clase 1 POO
Flashcard
•
University
8 questions
Flashcard on Intro to Recon & Google Dorking
Flashcard
•
12th Grade
14 questions
Journalism Article Types
Flashcard
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade