H2 Schema Initialisation Syntax Error in Sql Statement Author, December 15, 2022 Application Startup error: But I got ‘Syntax error in SQL statement’ on application startup: Error:… 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
How to Cancel a Task in Java ExecutorService Author, September 1, 2022 1. Future cancel() API The Future.cancel() method takes one argument of typeboolean boolean cancel(boolean mayInterruptIfRunning); Depending on the… Continue Reading
Executor RejectedExecution Handler Author, September 1, 2022 Executor RejectedExecutionHandler 1. When tasks get rejected Remember, when we finish the execution of an… Continue Reading
ConcurrentHashMap Author, September 1, 2022September 1, 2022 1. ConcurrentHashMap class The ConcurrentHashMap is very similar to the HashMap class, except that ConcurrentHashMap offers internally maintained concurrency. It means we do… Continue Reading