The Merge sort algorithm is a divide and conquers algorithm. In the divide and conquer paradigm, a problem is broken into small problems wh…
Category: Articles
Default methods in Java 8, and what it changes in API design
Interested to learn about Default methods? Check our article introduci default methods in interfaces, describining what they are.
Hands on Java 11’s constantdynamic
With the intention of making the JVM more appealing to dynamic languages, the seventh version of the platform had introduced invokedynamic …
Using Java Flight Recorder with OpenJDK 11
Java Flight Recorder (JFR) used to be a commercial add-on of the Oracle JDK. As it’s been open sour…
Static analysis of Java via the Checkstyle plugin for Eclipse
In this step-by-step tutorial, we showed developers how to install the Checkstyle plugin for Eclipse. The plugin lets them take advantage of static code analysis integration in the early stages of the software development lifecycle.
Dropping Raw String Literals from JDK 12
It has been proposed that raw string literals (preview) be dropped from JDK 12 (which enters Rampdow…
Creating Java static final Equivalents in Kotlin | Baeldung
Learn how to do the equivalent of static final in Kotlin.
Why is String.strip() 5 times faster than String.trim() for blank string In Java 11
I’ve encountered an interesting scenario. For some reason strip() against blank string (contains whitespaces only) significantly faster than trim() in Java 11.Benchmarkpublic class Test {
InOrder traversal of Binary tree in Java using Recursion and Iteration
This is the second article about tree traversal algorithms using Java. In the first part , we have seen the pre-order algorithm for visitin…
Get source code of any class from within a Java program
I’m attempting to retrieve the source code of any class (if available) from within a Java program for debugging purposes. Let’s say I have the Class[_]’s reference to which I would like to retrieve…
Exploring the Spline Data Tracker and Visualization tool for Apache Spark (Part 2)
Interested to learn about Visualization tool? Check our series of articles about Tracker and Visualization tool for Apache Spark.
Java 8 Compare Dates Example
1. IntroductionJava 8 added a new set of packages to provide a comprehensive date-time model. J…
“I hope to make CoolBeans more polished than NetBeans with native notifications and retina icons” – JAXenter
CoolBeans is an IDE distribution which promises to package the best there is in the Apache NetBeans ecosystem. We talked to Emilian Bold about this project.
Java EE 7 Batch Processing | Baeldung
A quick and practical introduction to batch processing in Java EE7.
How to Print all Leaf Nodes of Binary tree in Java – Recursion and Stack
Binary tree based questions are very common in Java or any other Programming job interviews. One of the frequently asked binary tree questi…