Bazlur has more than ten years of experience coding in Java, including numerous academic, professional, and personal projects. He is the founder and current moderator of a Java user group in Bangladesh. In addition, he authored four books about the Java programming language; one of them was on the bestseller list in Bangladesh. He loves to mentor, write and contribute to open-source projects.
Let’s see an example of where we can use Threads. Let’s assume we are building a web server that returns the most used words in a website.A N M Bazlur Rahman
We write code in a file line by line, and then it gets executed. To be able to execute a piece of code requires an execution environment. In Java, a thread is an executing environment. If a program has only one executing environment, then we call this program a single-threaded program.A N M Bazlur Rahman
Did you know that you can save up to 25% of your heap memory and your Cloud bills without any effort? Well, it’s true.
Many exciting features have been added to the latest releases of Java recently and I’m going to cover one that is often overlooked in this article.A N M Bazlur Rahman