Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


List java api that supports threads?



List java api that supports threads?..

Answer / anand mandal

Java provides several APIs and classes to support multithreading:

1. `java.lang.Thread`: This class is at the core of Java's multithreading support and is used to create and manage threads.

2. `java.lang.Runnable`: The `Runnable` interface allows you to define the code that a thread will execute, providing a more flexible way to implement multithreading.

3. `java.util.concurrent`: This package contains classes and interfaces for high-level concurrency control, such as the `Executor` framework, concurrent collections, and thread pools.

4. `java.util.concurrent.atomic`: It provides atomic variables for thread-safe operations on single variables without the need for explicit synchronization.

5. `java.util.concurrent.locks`: This package contains more advanced locking mechanisms like ReentrantLock and ReadWriteLock, allowing for more fine-grained control over thread synchronization.

6. `java.util.concurrent.Future`: The `Future` interface represents the result of an asynchronous computation and is commonly used for managing asynchronous tasks.

These APIs and classes enable effective multithreading in Java, helping developers write concurrent and efficient programs.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What was java originally called?

0 Answers  


Can we call the Thread.sleep in Synchyronozed block?

5 Answers   Logica CMG,


How many bits is a string?

0 Answers  


Does java arraylist maintain insertion order?

0 Answers  


Can a constructor call the constructor of parent class?

0 Answers  


When we can access the static data member without creating the object what is the need of the object in java.

5 Answers   Airhub, ssinformatics,


What do you mean by garbage collection used in java?

0 Answers  


what is the diffrence between class and object?

5 Answers  


What is void class in java?

0 Answers  


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

0 Answers  


Explain notifyall() method of object class ?

0 Answers  


write a program to create an arraylist and listeterator.and value should be enter through keyboard.

1 Answers   Axcend,


Categories