Java SE 8 Programmer 1Z0–808 Practice Full Test 1

© examsiri.com
Question : 74 of 84
 
Marks: +1, -0
public static void main (String [] args) {
  String myStr = "Hello World";
  myStr.trim ();
  int i1 = myStr.indexOf (" "); 
  System.out.println (i1);
}

What is the result?
Go to Question: