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

© examsiri.com
Question : 50 of 84
 
Marks: +1, -0
public class MyClass {
  public static void main(String[] args) {
    String s = "Java Duke";
    int len = s.trim().length();
    System.out.print(len);
  }
}

What is the result?
Go to Question: