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 3879

Given:
1.    interface TestA { String toString(); }
2.    public class Test {
3.    public static void main(String[] args) {
4.    System.out.println(new TestA() {
5.    public String toString() { return "test"; }
6.    });
7.    }
8.    }
What is the result?
 

Option A

A.    test
 

Option B

B.    null
 

Option C

C.    An exception is thrown at runtime.
 

Option D

D.    Compilation fails because of an error in line 1.
 

Correct Answer A
Explanation


Question ID 3880

Given:
11.    public interface A { public void m1(); }
12.    
13.    class B implements A { }
14.    class C implements A { public void m1() { } }
15.    class D implements A { public void m1(int x) { } }
16.    abstract class E implements A { }
17.    abstract class F implements A { public void m1() { } }
18.    abstract class G implements A { public void m1(int x) { } } What is the result?
 

Option A

A.    Compilation succeeds.
 

Option B

B.    Exactly one class does NOT compile.
 

Option C

C.    Exactly two classes do NOT compile.
 

Option D

D.    Exactly four classes do NOT compile.
 

Correct Answer C
Explanation

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