|
|
вернуться в форумОбщий форумJava -> System.exit(1) Why does System.exit(1) get WA instead of Crash? Re: Java -> System.exit(1) I want to get CRASH on Timus in run() function, how can i do this? public class Main implements Runnable { ....public void run() { ........throw new RuntimeException(); ....} ....public static void main(String[] args) { ........new Thread(new Main()).start(); ....} } This code gets WA instead of Crash! Edited by author 15.04.2010 03:34 Re: Java -> System.exit(1) Послано ile 16 апр 2010 01:05 I didn't check it, but something like this should cause CRASH: int[] a = new int[10]; System.out.println(a[20]); Re: Java -> System.exit(1) Послано ile 16 апр 2010 01:06 or... System.out.println(1/0); Re: Java -> System.exit(1) no, it didn't help Re: Java -> System.exit(1) Yes, it gets WA... But why? Can anybody explain me? |
|
|