Binary Search in Java with Example Author, January 1, 2023January 1, 2023 It is an algorithm that searches for an element in a sorted array, and it… Continue Reading
Java Thread Join with Example Author, January 1, 2023 In java, join() methods allows one thread to wait for the complete execution of other… Continue Reading
How To Create Custom Annotation In Java Author, December 19, 2022 Create Custom Annotation: In java, creating an annotation is @interface is used to create an Annotation. public… Continue Reading
How To Kill Thread in Java Author, December 18, 2022 There is no official method to kill a thread in Java. Stopping a thread is entirely… Continue Reading
Set and Get the Name Author, September 11, 2022September 11, 2022 Thread in Java Table Of Contents Getting Thread Name Setting Name to Thread Using Thread… Continue Reading
How to Create and Start a New Thread in Java Author, September 3, 2022 Table Of Contents Creating a New Thread By Extending Thread Class By Implementing Runnable Interface… Continue Reading
How to work with wait(), notify() and notifyAll() in Java? Author, September 3, 2022September 3, 2022 Java concurrency is a pretty complex topic and requires a lot of attention while writing… Continue Reading
Java 8 Concurrency (2023) Author, September 1, 2022July 25, 2023 In simple words, concurrency is the ability to run several programs or several parts of a program… Continue Reading
Object level lock vs Class level lock in Java Author, September 1, 2022 In Java, a synchronized block of code can only be executed by one thread at a… Continue Reading
Thread Safety Author, September 1, 2022 Defining thread safety is surprisingly tricky. A quick Google search turns up numerous “definitions” like these: Thread-safe… Continue Reading