1z0-809 무료 덤프문제 온라인 액세스
| 시험코드: | 1z0-809 |
| 시험이름: | Java SE 8 Programmer II |
| 인증사: | Oracle |
| 무료 덤프 문항수: | 209 |
| 업로드 날짜: | 2026-06-03 |
Given:
class UserException extends Exception { }
class AgeOutOfLimitException extends UserException { }
and the code fragment:
class App {
public void doRegister(String name, int age)
throws UserException, AgeOutOfLimitException {
if (name.length () <= 60) {
throw new UserException ();
} else if (age > 60) {
throw new AgeOutOfLimitException ();
} else {
System.out.println("User is registered.");
}
}
public static void main(String[ ] args) throws UserException {
App t = new App ();
t.doRegister("Mathew", 60);
}
}
What is the result?


