adplus-dvertising
frame-decoration

Question

If two arguments are passed to the indexOf() function then ___________________

a.

Second argument indicates the occurrence number of specified character from starting

b.

Second argument indicates the occurrence number of specified character from end

c.

Second argument indicates the index of the character in first argument

d.

Second argument indicates the index of the character from the last of the string

Answer: (a).Second argument indicates the occurrence number of specified character from starting

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If two arguments are passed to the indexOf() function then ___________________

Similar Questions

Discover Related MCQs

Q. Function replace() accepts _____________ arguments.

Q. String trim() function is used to _______________________

Q. String class provides function toUpper() to _____________________

Q. The compareTo() function is used to ________________

Q. Function equals() is _______________ and equalIgnoreCase() is _________________

Q. The function lastIndexOf() is used to ___________________

Q. String class have a concat() function that is used to _____________________

Q. If two index are given as argument to substring function then ___________________

Q. If only one parameter is passed to substring function then __________________

Q. Which is the function to get the character present at a particular index in the string?

Q. What does function length do in String class?

Q. How to declare an object of class String?

Q. Which is a true statement for object of String class?

Q. Which among the following is a serialization descriptor for any class?

Q. RandomAccessFile can be used to _______________________

Q. PushBackReader allows the streams to be pushed back to the stream.

Q. Which exception handler can be used when character encoding is not supported?

Q. StringReader handles _____________________

Q. Which class can handle IO class interrupt?

Q. Reader class is _________________