Define Constants in Interface or Class

Define Constants in Interface or Class

In Java syntactically it is possible and allowed to define constants in both Interface and Class. In old days putting…

1 comment
Java Classpath Scanning using ClassGraph

Java Classpath Scanning using ClassGraph

The standard Java Class API or Reflection API allows us to find all interfaces/classes implemented/extended by a class/interface. It also…

3 comments

Symmetric Encryption with AES in Java 8

AES (Advanced Encryption Standard) is Symmetric Encryption specification for the encryption of electronic data established by the U.S. National Institute…

2 comments
Cryptography Fundamentals and Basic Concepts

Cryptography Fundamentals and Basic Concepts

The world of Cryptography in interesting if you get fundamentals clear in our head. Generally Cryptography is referred as Encryption…

1 comment
Thread Concurrency using ExecutorService in Java 8 1200x630

Thread Concurrency using ExecutorService in Java 8

Programming multi threading and concurrency has been in Java for a while. Concurrency utility package java.util.concurrent (introduced Java 5) made…

2 comments
Interface Default Method in Java8

Interface Default Method in Java 8

Default method in interface As you know that an Interface in java can have only Abstract methods and a class,…

1 comment
Optional in Java 8 to avoid NullPointer

Optional in Java 8 to avoid NullPointer

“A Java developer who has not met NullPointerException” is a myth. NullPointerException is king of exceptions in Java. People call…

3 comments
How to join strings in Java8

How to Join strings – Java8

As a programmer quite often we hit the need to join multiple string values separated by a delimiter. For example…

add comment
Lambda Expression vs anynymous inner class Java8

Lambda Expression v/s Anonymous Inner Class – Java 8

Lambda Expression is new feature of Java 8. Before Java 8 Anonymous Inner Class was very useful to write method…

add comment
Lambda Expression Basics Java8

Lambda Expression Basics and Syntax – Java8

In simple term, a Lambda Expression is implementation of a Functional Interface. Lambda Expression is a way to provide implementation…

add comment