QUESTION 16자격증/OCJP_ExamD2018. 7. 31. 00:18
Table of Contents
반응형
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
반응형
'자격증 > OCJP_ExamD' 카테고리의 다른 글
QUESTION 18 (0) | 2018.08.03 |
---|---|
QUESTION 17 (0) | 2018.07.31 |
QUESTION 15 (0) | 2018.07.30 |
QUESTION 14 (0) | 2018.07.30 |
QUESTION 13 (0) | 2018.07.30 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상