GopalDas.Org

Posts Tagged: Core Java

ReentrantLock Example Java Concurrency ReentrantLock in Java is added on java.util.concurrent package in Java 1.5 along with other concurrent utilities like CountDownLatch, Executors. ReentrantLock is one of the most useful addition in Java concurrency package […]

Life cycle of a thread in Java: Understanding Thread Life Cycle and Thread States are very important when you are implementing Threads and multi-threaded programming for your application. Thread States Below diagram shows different states […]

Multitasking and Multithreading With Real World Example Multitasking Multitasking is a technique where multiple tasks, also known as processes, share common processing resources such as CPU, Memory etc. With a multitasking OS, such as Windows […]

What is ThreadLocal in Java example – ThreadLocal class can be used in multi threaded environment and provides thread-local variables that is local to each thread. Thread that accesses thread local variable (via its get […]

Find duplicate elements in ArrayList – This example will show, how to find no of duplicate item occurrence from a ArrayList. 1) No of item occurrence for a single item 2) No of occurrence of […]

how to create custom checked exception – We can create our own exceptions by extending ‘Exception’ class. Below example will show you how to create custom exception by extending Exception class. It is a checked […]

Full-Text Search with Apache Lucene in Java – Latest Version: Apache Lucene 4.7.0 What is Lucene? Apache Lucene is a high-performance, full-featured text search engine library written in Java. It is a technology suitable for […]

Scroll To Top