Computer Science, asked by AbhiramiGNath9986, 1 month ago

Which is not a valid constructor of thread class

Answers

Answered by praveenmakode380
13

Answer:

Thread() This allocates a new Thread object.

2 Thread(Runnable target) This allocates a new Thread object

Answered by shilpa85475
3

The constructor of the Thread class is:

Thread()

Thread(Runnable target)

Thread(Runnable target, String name)

Thread(String name)

Thread(ThreadGroup group, Runnable target)

Thread(ThreadGroup group, Runnable target, String name)

Thread(ThreadGroup group, Runnable target, String name, long stackSize)

Thread(ThreadGroup group, String name)

Explanation:

A thread is a route observed whilst executing a program.

It is a chain of nested carried out statements or technique calls that permit more than one sport inside one process.

A thread is a unit of execution in a program.

The JVM permits software to have more than one thread of execution going for walks concurrently.

Every thread has precedence.

Threads with better precedence are carried out in desire to threads with decreased precedence.

Similar questions