Hi guys,
This is from javabeat.com,
Choices:
1. The program will throw
IllegalStateException 2. The program will output 0
3. The program will output -1
4. The program will output 1
ANS:4
I thought the O/P would be 0 as there would be a first match with a "" (null
string).. Is it not so? The starting-index of the match has to be zero rite.. How is it 1?
Thanks,
Vishwa