Java indexOf no character parameter?

What does the String method indexOf( char c ) return if the character parameter is not in the string?

a) ArrayOutOfBoundsException

b) -1

c) 0

d) null

Comments

Sign In or Register to comment.