Core Java
-
Java 8 Stream Intermediate Operations (Methods) Examples
A Complete guide to Java 8 Streams intermediate operations. List of all built-in Stream API Intermediate operations(methods) with examples. 1.…
Read More » -
Java UnknownHostException – Invalid Hostname for Server – How to Fix It?
A quick guide to An UnknownHostException and it is thrown if a java.net.UnknownHostException occurs while creating a connection to the…
Read More » -
How to process images and videos within Java JVM
Processing of images – let alone videos – within the Java JVM has always been a challenging task. ImageIO classes have come…
Read More » -
7 Examples to Read File into a byte array in Java
Hello guys, Java programmers often face scenarios in real-world programming, where they need to load data from a file into…
Read More » -
Mockito Matchers Precedence
This post is opinion. Let’s look at the verify method in Mockito for testing in Java. Example: verify(myMock).someFunction(123) – expects…
Read More » -
ArrayList clone() – ArrayList deep copy and shallow copy
Example program to ArrayList clone method example. ArrayList deep copy and shallow copy examples on Student Objects. 1. Introduction ArrayList…
Read More » -
Java 8 – Collections sort() method – List Custom Sort Example By Employe Objects (Id, Name, Age)
A complete guide to Sorting Custom Objects in java. Collections.sort() method does the sorting based on Comparable or Comparator implementation.…
Read More » -
How To Validate Phone Numbers in Java (Regular Expression + Google libphonenumber)
A quick guide to how to validate phone numbers in java for different countries such as the USA, IN. Example…
Read More » -
Java 14: Looking at the updated switch statement
JDK 14, released in March 2020, comes with an updated version of the switch statement. This has been a preview…
Read More »