자격증/OCJP_ExamD
QUESTION 16
IT grow.
2018. 7. 31. 00:18
반응형
QUESTION 16Given:11. String test = "This is a test";12. String[] tokens = test.split("\s");13. System.out.println(tokens.length);What is the result?A. 0B. 1C. 4D. Compilation fails.E. An exception is thrown at runtime.Solution : D
Main.java:12: illegal escape character
String[] tokens = test.split("\s");
^
1 error
반응형