Witam,
Czy macie może do polecenia jakieś strony z przykładowymi pytaniami typu "Co wyświetli poniższy kod po wykonaniu?". Najchętniej w języku Java.
Pozdrawiam.
0
0
Bardziej chodziło mi o coś w stylu:
What is the output of the following application?
package game;
public class Football {
public static void main(String officials[]) {
try {
System.out.print('A');
throw new RuntimeException("Out of bounds!");
} catch (ArrayIndexOutOfBoundsException aioobe) {
System.out.print('B');
throw t;
} finally {
System.out.print('C');
}
}
}
A. ABC
B. ABC, followed by a stack trace for a RuntimeException
C. AC, followed by a stack trace for a RuntimeException
D. None of the above
0
Odpowiedź D. Nie skompiluje się.
0
C
0
java tricky questions
java tricky code snippets
w google