[Ãʺ¸ÀÚ] Exception 󸮿¡ °üÇؼ­...(1)


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

±Û¾´ÀÌ :±è°­¼® 2000³â 2¿ù 10ÀÏ 00:15:51

Ã¥³»¿ë¿¡¼­ °øºÎÇÑ »çÇ×ÇÏ°í ¹®Á¦Ç®ÀÌÇÏ°í Á» ´Ù¸¥°Í °°¾Æ ÀÌÇØ°¡ Àß ¾È°©´Ï´Ù. µµ¿Í ÁÖ¼¼¿ä.
ÀÏ´Ü ¹®Á¦´Â ¾Æ·¡¿Í °°½À´Ï´Ù.


Ã¥ JAVA2 SCJP (Á¤º¸¹®È­»ç) Page : 267
======================================================
6.Given the following code, which letters get written
to the standard out put?


class Unchecked {
public static void main(String[] args) {
try {
method();
}
catch(Exception e) {
}
}


static void method() {
try {
Wrench();
System.out.println(a);
}
catch (ArithmeticException e) {
System.out.println(b);
}
finally {
System.out.println(c);
}
System.out.println(d);
}


static void Wrench() {
throw new NullpointException();
}
}


a) a
b) b
c) c
d) d
======================================================
ÀÌ»óÀÌ ¹®Á¦ ÀÔ´Ï´Ù. Àú´Â ´äÀÌ c ¿Í d ¶ó°í »ý°¢Çϴµ¥,
´ä¿¡´Â c ¸¸ ³ª¿Í ÀÖ´õ±º¿ä. ¿Ö Exception 󸮰¡ ³¡³µÀ¸´Ï
d µµ Ãâ·ÂÀÌ µÇ¾ß µÉ°Í °°Àºµ¥ Àß ¸ð¸£°Ú½À´Ï´Ù.
¾Æ½Ã´ÂºÐ Á» µµ¿Í ÁÖ¼¼¿ä.


´ÙÀ½ ±Ûµé:



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

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


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