Core Java
-
Java Concurrency: ReentRantLock Fairness
Previously we saw some of the building blocks of concurrency in Java. In this blog we will focus on ReentRantLock.…
Read More » -
Methods To Convert InputStream to String In Java
In Java, an InputStream is a common way to read data from a source, such as a file or network…
Read More » -
Java Static Synchronized method behavior
In our earlier post, we learnt that when a method is synchronized, only one thread will be allowed to enter…
Read More » -
Java Concurrency: The Lock interface
Previously we implemented a thread safe counter using synchronized. We would like to swift from synchronized blocks to something more…
Read More » -
Java Modules: An Introduction
Java modules were introduced in Java 9 to enhance the modularity of the Java platform. A module in Java is…
Read More » -
10 Popular Libraries for Java Unit and Integration Testing
Java unit testing and integration testing are both important parts of the software development process. Unit testing involves testing individual…
Read More » -
Can threads execute different synchronized methods on same object?
In our earlier post, we learnt that when a method is synchronized only one thread will be allowed to enter…
Read More » -
Java Concurrency: Synchronized
Previously we had an introduction to threads in Java and some of the internals. On this blog we will proceed…
Read More » -
Intro To Java Virtual Threads
Java Virtual Threads is a new feature introduced in Java 19 that allows developers to create lightweight threads, also known…
Read More »