AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-851





Question ID 3829

Given:
1.    class TestException extends Exception { }
2.    class A {
3.    public String sayHello(String name) throws TestException {
4.    if(name == null) throw new TestException();
5.    return "Hello " + name;
6.    }
7.    }
8.    public class TestA {
9.    public static void main(String[] args) {
10.    new A().sayHello("Aiko");
11.    }
12.    }
Which statement is true?

Option A

A. Compilation succeeds.
 

Option B

B.    Class A does not compile.
 

Option C

C.    The method declared on line 9 cannot be modified to throw TestException.
 

Option D

D. TestA compiles if line 10 is enclosed in a try/catch block that catches TestException
 

Correct Answer D
Explanation


Question ID 3830

Given:
11.    public static void main(String[] args) {
12.    for (int i = 0; i <= 10; i++) {
13.    if (i > 6) break;
14.    }
15.    System.out.println(i);
16.    }
What is the result?
 

Option A

A.    6
 

Option B

B.    7
 

Option C

C.    10
 

Option D

D.    11
 

Option E

E.    Compilation fails.
 

Option F

F.    An exception is thrown at runtime.
 

Correct Answer E
Explanation

Send email to admin@getfreedumps for new dumps request!!!