answersLogoWhite

0

Because the developers of Java considered the possibility of multithreading a big advantage. You don't HAVE TO use multiple threads; just use it when you need it.

Because the developers of Java considered the possibility of multithreading a big advantage. You don't HAVE TO use multiple threads; just use it when you need it.

Because the developers of Java considered the possibility of multithreading a big advantage. You don't HAVE TO use multiple threads; just use it when you need it.

Because the developers of Java considered the possibility of multithreading a big advantage. You don't HAVE TO use multiple threads; just use it when you need it.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

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 notify function in java?

The notify() method is used in Thread Communication between two threads along with the wait() method


What is JFM in Java and what is the use of it?

jFM is a java file manager. It is used to access the file system.


Another name of single strand wire?

Another name that can be used for a single-strand wire is thread or strand.


Which is the operating system used in the sonyericsson c902?

Java OS


What is meant by a thread in java programming language?

A thread and a process are same but a minor difference is there. Process executes a program completely without splitting whereas a thread splits a program into smaller tasks and then execute them separately.And then combine the final result. that is why a process is often called as Heavy weight and a thread is called as light weight.


Why thread used in java?

Threads are used in Java to run multiple operations in parallel. You can create and run multiple threads in parallel to utilize the processing power of the computer and reduce waiting time which would be high if processes are executed in sequence


What are the importance and uses of single and double thread?

Single thread is used for simple sewing projects where a lighter weight thread is sufficient. Double thread is commonly used for stronger stitching and can provide added durability for seams that need to withstand more stress. Both threads have their own uses based on the type of fabric and project being worked on.


What is deadlock in java?

A deadlock is a situation that comes up when multiple threads are being used in a single java program. During thread execution, threads can access any number of methods they want. To ensure that data is consistent during execution, the methods have a property called "synchronized" which prevents multiple threads from accessing a single method. So under this scenario lets take a look at this example: Thread A is currently holding a lock on Method A and needs to execute method B in order to complete. Thread B is currently holding a lock on Method B and needs to execute method A in order to complete. The above is a classic example of deadlock.


What is the correct use of volatile in java?

It is used to alert the compiler that the value of a variable may be modified by more than one thread. As a result, the Java Virtual Machine is not allowed to do certain optimizations, which are problematic in such cases.


Why do you use synchronized block in java?

A Synchronized block is a block of code enclosed by the {} braces that has a synchronized keyword before it. This block of code is similar to a synchronized method and only one thread can access it at a time.


Need of interface in java?

Interfaces are used in Java to accomplish most of the goals of Multiple Inheritance. For several reasons, Java only supports Single Inheritance for classes - i.e. a class can have only a single parent. The use of Interfaces is how Java attempts to implement most of the positives of the concept of Multiple Inheritance while avoiding its pitfalls.