11. String test = “This is a test”; 12. String[] tokens = test.split(”\s”); 13. System.out.println(tokens.length); What is the result?()
A: 0
B: 1
C: 4
D: Compilation fails.
E: An exception is thrown at runtime.
A: 0
B: 1
C: 4
D: Compilation fails.
E: An exception is thrown at runtime.
举一反三
- 11. String test = “This is a test”; 12. String[] tokens = test.split(”\s”); 13. System.out.println(tokens.length); What is the result?() A: 0 B: 1 C: 4 D: Compilation fails. E: An exception is thrown at runtime.
- Given: 11. String test = "This is a test"; 12. String[] tokens = test.split("\s"); 13. System.out.println(tokens.length); What is the result?() A: An exception is thrown at runtime. B: 1 C: 4 D: Compilation fails. E: 0
- Given: 11. String test = "This is a test"; 12. String[] tokens = test.split("\s"); 13. System.out.println(tokens.length); What is the result?() A: An exception is thrown at runtime. B: 1 C: 4 D: Compilation fails. E: 0
- Given: 11. String test = "This is a test"; 12. String[] tokens = test.split("/s"); 13. System.out.println(tokens.length); What is the result?() A: A An exception is thrown at runtime. B: B 1 C: C 4 D: D Compilation fails. E: E 0
- Given: 11.String test = "This is a test"; 12.String[] tokens = test.split("\s"); 13.System.out.println(tokens.length); What is the result?() A: 0 B: 1 C: 4 D: Compilation fails.