Menu
Question Index
...

What will be the output of the following program?

public class ThreadQuestion {
    public static void main(String[] args) {
        Thread t = new Thread();
        System.out.println("Minimum = " + Thread.MIN_PRIORITY);
        System.out.println("Maximum = " + Thread.MAX_PRIORITY);
        System.out.println(t.getClass());
    }
}


Minimum = 0
Maximum = 10
class java.lang.ThreadQuestion
Minimum = 1
Maximum = 10
class java.lang.Thread
Compilation Error
Runtime Error

Doubts

Problems

Topic: Thread Concept In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App