QUESTION 13자격증/OCJP_ExamD2018. 7. 30. 00:14
Table of Contents
반응형
QUESTION 13Given:public class Yikes {public static void go(Long n) {System.out.print("Long ");}public static void go(Short n) {System.out.print("Short ");}public static void go(int n) {System.out.print("int ");}public static void main(String[] args) {short y = 6;long z = 7;go(y);go(z);}}What is the result?A. int LongB. Short LongC. Compilation fails.D. An exception is thrown at runtime.Solution : A
반응형
'자격증 > OCJP_ExamD' 카테고리의 다른 글
QUESTION 15 (0) | 2018.07.30 |
---|---|
QUESTION 14 (0) | 2018.07.30 |
QUESTION 12 (0) | 2018.07.30 |
QUESTION 11 (0) | 2018.07.30 |
QUESTION 10 (0) | 2018.07.29 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상