answersLogoWhite

0


Best Answer

Medium priority

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the default priority of background thread in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

In relation to Java what is a thread?

A Java Thread is a thread of execution in a Java Program. A Java Virtual Machine can have a single application running multiple threads, which is known as concurrency. Threads are what make the program run. Each thread has a different priority, and when the machine queue fills up, the threads are executed in the order of their priority.


Does the priority values in thread are 1 to 10 in java?

Yes. 1 to 10 are the priority levels for threads in Java. 1 being the least priority and 10 being the maximum priority


How do you force garbage collection in java?

. Garbage collection cannot be forced. Calling System.gc() or Runtime.gc() is not 100 percent reliable, since the garbage-collection thread might defer to a thread of higher priority


How do I turn Java on?

Install Java. It is "on" by default.


How a class in java declared default?

default it is public type


Can you use two or more run methods for a single thread in same method?

No. Each thread can have only one run method. You can overload the run method because it is just another java method but only the default run method with void return type will get called when you start the thread


Can you restart stopped thread in java?

No. Once a thread is stopped you cannot restart it.


What are the background pointers in java?

Java does not support pointers.


What is the use of thread in java?

Thread is a single sequential flow of control within program. Each flow of control may be thought of as a seperate lines of code(module) is called as thread.Actually thread is a predefined class in java. threads are used to handle Exceptions in java.


What is default delimiter in java?

\\p{javaWhitespace}+


What is passed toward the method in java?

Java uses pass by value semantics by default.


What are the two ways of spawning a thread in Java?

You can create a Thread in Java by using two ways. 1. Extending the Thread class public class Test extends Thread { ..... } 2. Implementing the Runnable Interface public class Test implements Runnable { ... }