java basics
-
Core Java
Create Java Objects Using Class Names
The Java Reflection API provides several methods to achieve this goal. Nevertheless, identifying the most appropriate one for the current…
Read More » -
Core Java
Streams vs Loops in Java
In Java, a stream is a sequence of elements that can be processed in a functional style, enabling concise and…
Read More » -
Core Java
When to Call System.out.flush() in Java
In Java, System.out.flush() is a method used to force the output stream (System.out) to immediately write any buffered data to…
Read More » -
Core Java
Distinguishing Heap, Thread, and Core Dumps
A dump refers to information retrieved from a storage medium and saved for subsequent analysis. The Java Virtual Machine (JVM)…
Read More » -
Core Java
Closing Java IO Streams
Ensuring the appropriate closure of IO streams is crucial when dealing with Java IO operations, as it plays a vital…
Read More » -
Core Java
Hashtable vs ConcurrentHashMap
When handling key-value pairs in a Java application, two primary options come to mind: Hashtable and ConcurrentHashMap. Despite both providing…
Read More » -
Core Java
Split Java Integer Into Digits
When dealing with integer numbers in Java, there are occasions where it becomes necessary to decompose them into individual digits…
Read More » -
Core Java
Java Math ceil(), floor(), round() Methods
In Java, the process of rounding numbers is a frequently performed operation in a range of applications, spanning from mathematical…
Read More » -
Core Java
New features in Java 21
Java 21, released in September 2023, introduced several features and enhancements. Let us delve into Java 21 new features. 1.…
Read More » -
Core Java
New Features in Java 20
Java 20, released in March 2023, introduced several features and enhancements. Let us delve into Java 20 new features. 1.…
Read More »