Which of the following is NOT a primitive data type?
double,
float,
boolean,
String
Java String Objects & Methods

Flashcard
•
Computers
•
12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

11 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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
Similar Resources on Quizizz
5 questions
Arrays

Flashcard
•
11th Grade
13 questions
Java Classes and Objects

Flashcard
•
12th Grade
13 questions
CSAwesome: 1.2 - Java Basics HW Review

Flashcard
•
11th - 12th Grade
9 questions
Java String and Character Classes Revision

Flashcard
•
11th Grade
10 questions
Java Classes and Objects

Flashcard
•
12th Grade
10 questions
Arrays

Flashcard
•
10th - 12th Grade
11 questions
Computer Programming

Flashcard
•
University
5 questions
Arrays

Flashcard
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University