Java String Objects & Methods

Flashcard
•
Computers
•
12th Grade
•
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
Similar Resources on Wayground
10 questions
Compression

Flashcard
•
KG - 12th Grade
11 questions
Computer Programming

Flashcard
•
University
10 questions
Methods and conditional warm up 1

Flashcard
•
10th Grade
5 questions
Arrays

Flashcard
•
11th Grade
5 questions
Arrays

Flashcard
•
11th Grade
5 questions
Arrays

Flashcard
•
11th Grade
14 questions
AP Computer Science A Flashcard

Flashcard
•
12th Grade
10 questions
Arrays

Flashcard
•
10th - 12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade