¿¹Á¦
public
class
ClassA {
public void
methodA {
//...
System.exit(0);
}
¼Ö·ç¼Ç
´ë½Å RuntimeExceptionÀ» ó¸®ÇϽʽÿÀ.
public
class
ClassA {
public void
methodA
throws
RuntimeException {
//...
throw new
RuntimeException();
}