Menu
Question Index
...

What will be the output of the following program?

public class NewName extends Thread {
    public void run() {
        System.out.println("Starting point");
        yield();
        System.out.println("Ending point");
    }
    public static void main(String[] argv) {
        (new NewName()).start();
    }
}


Starting point
Ending point
Starting point
Ending point
(No output)
Compilation Error or Runtime Error

Doubts

Problems

Topic: What is Multitasking and Multithreading?

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App