The ThreadLocal class is useful to store and read data without colliding with other Threads even if the ThreadLocal instance is the same. Therefore, it’s a useful class to keep in mind whenever you need to manipulate data and avoid thread...
When we are working with Threads, it’s important to know when to use a daemon or a non-daemon Thread. Do you know if the main Thread is daemon or not? Do you know what is a daemon Thread? That’s what you will find out by trying out the...
The Completable Future feature is powerful to run asynchronous methods for better performance. In Java 5 there is the Future interface, however, the Future interface doesn’t have many methods that would help us to create robust code. To solve...
Go deep into String pool, intern method, equals, == by having fun with this Java Challenge! The best way to learn is by having fun! The Java Challenges provide you that, you learn Java core concepts deeply! That’s the link for more details...
Go deep into String pool, intern method, equals, == by having fun with this Java Challenge! The best way to learn is by having fun! The Java Challenges provide you that, you learn Java core concepts deeply! That’s the link for more details...