public static void main(String... args) {
System.out.println(getI());
}
public static int getI() {
int i = 0;
try {
return i;
} finally {
i = 1;
}
}
#javapuzzle #java
System.out.println(getI());
}
public static int getI() {
int i = 0;
try {
return i;
} finally {
i = 1;
}
}
#javapuzzle #java
Co wypisze?
- "0" 60.8% (31)
- "1" 39.2% (20)
- Najlepsze
- Wszystkie komentarze







wejdziemydopiero po opuszczeniu try. Wypisze więc 0.Komentarz usunięty przez autora
Komentarz usunięty przez autora