All Core Java Wisdoms!

Check out all blog posts for Core Java. Click on a headline to read the teaser.

Defensive Copies

1 minute read

All Core Java Wisdoms! The simplest way to avoid problems with concurrency is to share only immutable data between threads. Immutable data is data which cannot changed Read More ›

Serial Version UID

2 minute read

Serial Version UID is declared in java classes in relation to java object serialization & de-serialization process" Read More ›

Atomic Operations!

less than 1 minute read

An atomic operation is an operation which is performed as a single unit of work without the possibility of interference from other operations. Read More ›

Thread Locals

1 minute read

Another way to achieve thread-safety apart from writing immutable classes Read More ›

Null Pointer Exception – Blasphemy!

2 minute read

Treat Java as Human. He can accept & comprise on any type of exceptions but “NULL POINTER EXCEPITON” is a SIN. Read More ›

Concurrent Hash Map

less than 1 minute read

Superior brother of HashMap Read More ›

Thread States

less than 1 minute read

Different moods of threads Read More ›

Interface Vs Abstract Class

1 minute read

Co-Brothers with different nature. Read More ›

Array Lists

1 minute read

A Growable Friend Read More ›

Immutable Classes

less than 1 minute read

To create an immutable class following steps should be followed:" Read More ›

Intrinsic Locks - Synchronization

1 minute read

Every object has a natural lock associated with it known as an intrinsic lock.A thread that needs to access object's fields has to acquire the object's intrinsic lock, use it & then release the intrinsic lock when it's done with them. During the time thread hold the lock, no other thread can acquire the same lock. Read More ›