answersLogoWhite

0

Medium priority

User Avatar

Wiki User

16y ago

What else can I help you with?

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 is the time complexity of priority queue operations in Java?

The time complexity of priority queue operations in Java is O(log n) for insertion and removal of elements.


What are the background pointers in java?

Java does not support pointers.


What is default delimiter in java?

\\p{javaWhitespace}+


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 passed toward the method in java?

Java uses pass by value semantics by default.