This post will guide you to create a simple web application using Spring Boot and Apache Kafka. Apache Kafka is a distributed streaming platform which is well known for moving...
After thinking a lot about what to write next, I stumbled upon a very cool idea. And this is what I thought I should do: Discover something interesting using code...
This post will guide you to create a simple web application using Spring Boot and Apache Spark. For the demonstration we are going to build a maven project with Spring...
Definition Type safety is prevention of typed errors in a programming language. A type error occurs when someone attempts to perform an operation on a value that doesn’t support that operation. In simple...
Statement: Let's say you have a list of integers which you want to group into even and odd numbers. Create a list of integers with four values 1,2,3 and 4: List<Integer>...
To re-index an index using java, build a re-index request using ReindexRequestBuilder API like: ReindexRequestBuilder reindexRequest = new ReindexRequestBuilder(client,ReindexAction.INSTANCE) .source("source_index") .destination("destination_index") .refresh(true); After creating a request execute the request: reindexRequest.execute();...
Reflection is a powerful feature of Java which provides the ability to inspect & modify the code at run time (manipulate internal properties of the program). For example: It's possible for...
Garbage Collection literally stops the world. When a GC occurs in young generation space, it is completed quickly as the young generation space is small. Young generation space is the space...
In simple words java 8 allows us to write code more precisely and concisely, which is better than writing verbose code in the java versions prior to java 8. Example: Let’s...