Javaの問題

正解率:42%の問題 前回の解答結果: ログインしてください 解答時間:-

問題

次のプログラムをコンパイルし、実行するとどうなりますか。正しいものを選択してください。


1. public class Test {
2. static void test() {
3. try{
4. System.out.print("TEST ");
5. throw new RuntimeException();
6. }catch(Exception ex){
7. System.out.print("exception ");
8. }
9. }
10.
11. public static void main(String[] args) {
12. try{
13. test();
14. }catch(RuntimeException re){
15. System.out.print("runtime ");
16. }
17. System.out.print("end");
18. }
19. }
20.

解答

問題番号:1508271343061作成者:-

コメント