exception problem


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :Sung Yi 2000³â 2¿ù 10ÀÏ 01:11:07

In Reply to: [Ãʺ¸ÀÚ] Exception 󸮿¡ °üÇؼ­...(1) posted by ±è°­¼® on 2000³â 2¿ù 10ÀÏ 00:15:51:

The Wrench() method has thrown a NullPointerException so the program finished at that point.


Therefore, the finally block got executed(it will be executed disregarding the outcome) to print 'c' and the program didn't even get to the point to print 'd'.


If you add a print statement in the catch block in the main() method, you can see it clearly.


´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]