Concurrency How to Cancel a Task in Java ExecutorService R@jesh, September 1, 20221. Future cancel() API The Future.cancel() method takes one argument of typeboolean boolean cancel(boolean mayInterruptIfRunning); Depending on the… Continue Reading
Concurrency Executor RejectedExecution Handler R@jesh, September 1, 2022Executor RejectedExecutionHandler 1. When tasks get rejected Remember, when we finish the execution of an… Continue Reading
Concurrency ConcurrentHashMap R@jesh, September 1, 2022September 1, 20221. ConcurrentHashMap class The ConcurrentHashMap is very similar to the HashMap class, except that ConcurrentHashMap offers internally maintained concurrency. It means we do… Continue Reading
Concurrency Java Deadlock Example and Solution R@jesh, September 1, 20221. Deadlock In Java, a deadlock is a situation where minimum two threads are holding the… Continue Reading
Java Java Streams API R@jesh, August 28, 2022February 11, 2024A Stream in Java can be defined as a sequence of elements from a source. The source of… Continue Reading
Java Java 11 | toArray(intFunction) R@jesh, August 20, 2022February 11, 2024Stream toArray(IntFunction generator) example Description Stream toArray(IntFunction<A[]> generator) returns an array containing the elements of this… Continue Reading
Exceptions GenerationTarget encountered exception accepting command : Error executing DDL via JDBC Statement (2023) R@jesh, August 18, 2022July 24, 2023GenerationTarget encountered exception accepting command : Error executing DDL via JDBC Statement You should try… Continue Reading
Algorithm Custom LinkedList Implementation in Java R@jesh, August 16, 2022What is Linked List ? A linked list is a linear data structure containing interconnected… Continue Reading
Java IS-A relationship in java R@jesh, August 13, 2022Is a relationship is also known as inheritance. We can implement ‘is a’ relationship or… Continue Reading