Java Quick Reference
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Chanel White
Used 8+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Constructs a new string object that represents the same sequence of characters as str
String(String str)
int length()
String substring(int from, int to)
Answer explanation
This method will allow you to create a new String object.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns the number of characters in a String object
int length()
int long()
int getLength()
Integer(int value)
Answer explanation
This is used to get the length of a String object. It is not the same length method used on arrays.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns substring(from, length())
String cutLength(String str)
String substring(int from)
String substring(int from, int to)
Answer explanation
This method will return a part of a string starting at the index indicated to the end of the string.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns the index of the first occurrence of a string, returns -1 if not found
boolean equals(String other)
int compareTo(String str)
int numberOf(String str)
int indexOf(String str)
Answer explanation
This returns the index number of the first letter of the string you are looking for.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns true if this is equal to other object, returns false if not equal
int equals(String other)
double equals(String other)
boolean equals(String other)
String equals(String other)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Constructs a new integer object, represents the specified int value
Integer(int value)
integer(int value)
int x = value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Returns the smallest value of an integer
getMinValue()
Integer.MAX_VALUE
Integer.MIN_VALUE
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
18 questions
Arduino Check-In
Quiz
•
10th Grade
20 questions
Tin học 11 chương I
Quiz
•
1st - 12th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
16 questions
Computer Hardware--Outside
Quiz
•
9th - 12th Grade
20 questions
9-Класс ТЕСТ 30-34
Quiz
•
9th Grade
14 questions
ABC in python
Quiz
•
9th Grade
20 questions
c# Diziler
Quiz
•
10th Grade
18 questions
linguaggio C++
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
