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 3871

Given:
1. public class Threads4 {
2.    public static void main (String[] args) {
3.    new Threads4().go();
4.    }
5.    public void go() {
6.    Runnable r = new Runnable() {
7.    public void run() {
8.    System.out.print("foo");
9.    }
10.    };
11.    Thread t = new Thread(r);
12.    t.start();
13.    t.start();
14.    }
15.    }
What is the result?
 

Option A

A.    Compilation fails.
 

Option B

B.    An exception is thrown at runtime.
 

Option C

C.    The code executes normally and prints "foo".
 

Option D

D.    The code executes normally, but nothing is printed.
 

Correct Answer B
Explanation


Question ID 3872

Given:
1.    public class TestOne {
2.    public static void main (String[] args) throws Exception {
3.    Thread.sleep(3000);
4.    System.out.println("sleep");
5.    }
6.    }
What is the result?
 

Option A

A.    Compilation fails.
 

Option B

B.    An exception is thrown at runtime.
 

Option C

C.    The code executes normally and prints "sleep".
 

Option D

D.    The code executes normally, but nothing is printed.
 

Correct Answer C
Explanation

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