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
Create a free account and access millions of resources
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
9 questions
Flashcards sobre Educación Tecnológica
Flashcard
•
KG
7 questions
Different nail systems overview
Flashcard
•
KG - University
5 questions
Rafter Length and Equal Gauge Quiz
Flashcard
•
KG
11 questions
Sewing Machine Components and Functions
Flashcard
•
10th Grade
15 questions
Post Test Review
Flashcard
•
10th Grade - University
15 questions
Similar Triangles AA SSS SAS
Flashcard
•
10th Grade - University
8 questions
Elements of Art
Flashcard
•
12th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade