Functional Interface and its usages
Blog
Guide to IAAS, PAAS, SAAS, BPAAS Cloud Models
Cloud Models What are Cloud Models? Cloud models are there for enabling ever-present, convenient and on-demand network access to a shared pool of configurable computing resources. In the cloud, resources like Network, Server, Storage, Application, and Services can be rapidly made available or can be released with minimal management or service provider effort. Let us take [...]
Java 8 – String Deduplication in G1 Garbage Collector
String Deduplication is an additional feature of G1 Garbage collector, introduced in JDK 8 - 20th update. Its aim is to reduce the Java Heap Live data set by deleting the duplicate instances of a String Object.
Understanding Garbage Collection in Java
Garbage Collection(GC) which is a Daemon thread is invoked by the JVM to find all the unused objects and destroy them to free up the 'Heap Space'
Method Reference using the Double Colon(::) Operator
Double Colon(::) Operator is actually known as the Method Reference in Java. Noticeable advantages of Method Reference are that it makes the code more concise, readable and easy to follow.
Java 8 – Searching Text Files using Streams
With the Introduction of Java 8, Searching or Performing any operation on a Text Files is a whole lot easier. By leveraging Java 8 streams and couple of other Java.nio.file libraries, we can easily process and filter out big files in few steps.
Java 8 – Understanding String.join() and StringJoiner
Whenever there was a need to create a comma separated list of elements, we mostly used StringBuilder, or StringBuffer based on the use case. Well in Java 8, this kind of usage is addressed and developers added a Utility method inside the String class itself called the Join() method and a separate class StringJoiner in java.util for more sophisticated operations.
Java 8 – Optional Class in java.util
This mini-article on Java 8 – Optional class gives you an idea about Optional class and its most commonly used methods.
Java 8 – Referencing Constructor Using Lambda & Double Colon Operator
In Java 8, there are different ways to reference a constructor. Namely using Lambda and double colon operator.
Java 8 – Static and Default Methods in Interface
Overview An Interface in Java has evolved a lot since it was first introduced in Java 1.0 and now with Java 8, we can even implement Static and Default methods inside our Interface. Let's take a look at the Java 8 implementation of both these methods; 1. Static Method Static method in an Interface is [...]