architecture Online Quiz - 20
Casual Mode - Take your time!
1 / 20
Correct
0
Incorrect
0
Score
0%
Multiple Choice
public class Dec26 { public static void main(String[] args) { short a1 = 6; new Dec26().go(a1); new Dec26().go(new Integer(7)); } void go(Short x) { System.out.print("S "); } void go(Long x) { System.out.print("L "); } void go(int x) { System.out.print("i "); } void go(Number n) { System.out.print("N "); } } What is the result?
- i L
- i N
- S L
- S N
- Compilation fails.