throws¿¡ ´ëÇؼ­


[ Follow Ups ] [ Post Followup ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

Posted by ÀÌ°æÇÏ on July 16, 1997 at 18:40:24:

ListOfNumbers.javaÈ­ÀÏ¿¡¼­
public void writeList() throws IOException,
ArrayIndexOutOfBoundsException
{
.....
}
Á¤ÀÇ ÇÑ´ÙÀ½


LIstOfNumberTest.javaÈ­ÀÏ¿¡¼­ ½ÇÇà ÇÏ·Á°íÇÏ´Ï ¿¡·¯¸Þ¼¼Áö°¡ Ãâ·ÂµË´Ï´Ù.


È­ÀÏÀÇ ³»¿ëÀº
//
import ListOfNumbers;
class ListofNumbersTest{
public static void main(String args[]){
ListOfNumbers list = new ListOfNumbers();
list.writeList():
}
}
ÀÔ´Ï´Ù.
±×·±µ¥,list.writeList()¿¡¼­ ¿¡·¯°¡ ³³´Ï´Ù.
¿¡·¯¸Þ¼¼Áö´Â
Exception java.io.IOException must be caught. or it use be
declared in the throws clause of this method.


Follow Ups:



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

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ Follow Ups ] [ Post Followup ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]