Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
String & Math Methods in Java
0
%
0
0
0
Back
Restart
What is the output of the following line of code?
1000.0
Oops!
Okay!
What is the output of the following line of code?
74.0
Oops!
Okay!
Which Java method is used to find the length of a String?
length()
Oops!
Okay!
System.out.print("Welcome\n" + "\"Everyone\"");
:)
Oops!
Okay!
Which String method returns the index (the position) of the first occurrence of a specified character in a string?
indexOf()
Oops!
Okay!
What is the output of the following line of code?
10.0
Oops!
Okay!
What is the output of the following code segment?
Program
Oops!
Okay!
True or False: String is a reference data type.
True
Oops!
Okay!
What is the output of the following line of code?
20.0
Oops!
Okay!
What is txt.charAt(6)?
W
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies