All Stories

Java - no_image

Immutable objectAn immutable object is an object whose internal state remains constant after it has been entirely created. This means that the public API of an immutable object guaran...

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

Enum

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

Casting

In tutorial, no_image, java, Jan 23, 2025

Java - string_pool

String Pool

In tutorial, string_pool, java, Jan 23, 2025

Java - no_image

Synchronized keyword

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

WildcardIn generic code, the question mark ?, called the wildcard, represents an unknown type. The wildcard can be used in a variety of situations: as the type of a parameter, field, ...

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

try-catch-finallyJava try, catch and finally blocks help in writing the application code which may throw exceptions in runtime and gives us a chance to either recover from exceptions ...

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

RecordJDK 14 introduces records, which are a new kind of type declaration. Like an enum, a record is a restricted form of a class. It’s ideal for “plain data carriers,” classes that c...

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

Double check pattern singletonDouble-checked locking of Singleton is a way to ensure only one instance of Singleton class is created through an application life cycle. As the name sug...

In tutorial, no_image, java, Jan 23, 2025