All Stories

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

Java - no_image

Default method in interfaceJava 8 allows to define default method in interface. Default methods allow us to add new methods in interface that are automatically available to it’s imple...

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

Access modifiers

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

VectorThe Vector class implements a growable array of objects. Like an array, it contains components that can be accessed using an integer index. However, the size of a Vector can gro...

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

TreeSetTreeSet class implements the Set interface that uses a tree for storage. It inherits AbstractSet class and implements the NavigableSet interface. The elements are ordered using...

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

TreeMapA Red-Black tree based NavigableMap implementation. The map is sorted according to the natural ordering of its keys, or by a Comparator provided at map creation time, depending...

In tutorial, no_image, java, Jan 23, 2025

Java - no_image

Stream interfacepublic interface Stream<T> extends BaseStream<T, Stream<T>>

In tutorial, no_image, java, Jan 23, 2025