1Z0-851 무료 덤프문제 온라인 액세스
| 시험코드: | 1Z0-851 |
| 시험이름: | Java Standard Edition 6 Programmer Certified Professional Exam |
| 인증사: | Oracle |
| 무료 덤프 문항수: | 290 |
| 업로드 날짜: | 2026-07-16 |
Given:
11.class A {
12.public void process() { System.out.print("A,"); }
13.class B extends A {
14.public void process() throws IOException {
15.super.process();
16.System.out.print("B,");
17.throw new IOException();
18.}
19.public static void main(String[] args) {
20.try { new B().process(); }
21.catch (IOException e) { System.out.println("Exception"); }
22.}
What is the result?
Given:
1.public class BuildStuff {
2.public static void main(String[] args) {
3.Boolean test = new Boolean(true);
4.Integer x = 343;
5.Integer y = new BuildStuff().go(test, x);
6.System.out.println(y);
7.}
8.int go(Boolean b, int i) {
9.if(b) return (i/7);
10.return (i/49);
11.}
12.}
What is the result?
Given:
1.class Alligator {
2.public static void main(String[] args) {
3.int []x[] = {{1,2}, {3,4,5}, {6,7,8,9}};
4.int [][]y = x;
5.System.out.println(y[2][1]);
6.}
7.}
What is the result?
Given:
33.try {
34.// some code here
35.} catch (NullPointerException e1) {
36.System.out.print("a");
37.} catch (Exception e2) {
38.System.out.print("b");
39.} finally {
40.System.out.print("c");
41.}
If some sort of exception is thrown at line 34, which output is possible?