Just create one Crunchify.jar file with all dependencies inside it :) Last week I wrote a tutorial on how to use maven-resources-plugin, maven-dependency-plugin & maven-jar-plugin to generate …
Java J2EE Tutorials • Category Archive
Java and J2EE tutorials are lessons and resources aimed at teaching individuals about the Java programming language and the Java 2 Platform, Enterprise Edition (J2EE) for developing enterprise applications. These tutorials cover various aspects of Java and J2EE, including the language syntax, object-oriented programming concepts, J2EE components and APIs, and best practices for developing enterprise applications.
They are designed for both beginners and experienced Java developers, and aim to help individuals gain the skills and knowledge needed to develop high-quality Java and J2EE applications.
How to Generate Out Of Memory (OOM) in Java Programatically
Everyone in java development face java.lang.OutOfMemoryError now and then, OutOfMemoryError (OOM) in Java is one problem which is more due to system's limitation (memory) rather than …
Read Article about How to Generate Out Of Memory (OOM) in Java Programatically →
tinylog – Lightweight, Simplified logging framework for Java. HelloWorld tutorial and Logging Level details
What is tinylog? Tinylog is a lightweight and Simplified logging framework for so many JVM languages. It has static logger. No need to create any other logger instance per class. Like any …
tinylog – Rolling File Writer Tutorial
What is rolling file adaptor for tinylog? The rolling file writer or adaptor is a tinylog's writer which writes logs to rolling files. It keeps rotating files and you will have latest log files as …
In Java How to remove Elements while Iterating a List, ArrayList? (5 different ways)
In Java How to remove elements from ArrayList while iterating? The list.remove(s) will throws java.util.ConcurrentModificationException, if you remove an item from an ArrayList while iterating …
In Java How to Get all Text After Special Character from String?
Java substring() utility is a very powerful library if you want to perform multiple special operations on String. It simply returns a substring of the specific string based on number of operations …
Read Article about In Java How to Get all Text After Special Character from String? →
In Java how to Get File or Directory Size Programmatically?
java.io.File is my favorite utility which deals with lots of File related to functionalities. I started dealing with Java and File utils more and more in my initial coding days. It's always fun to …
Read Article about In Java how to Get File or Directory Size Programmatically? →
IntelliJ IDEA Project/Module and latest Java setup (Java 17 or newer)
Java development team has changed their release cycle after Java8 significantly and now they are releasing new version every few months. I personally like the faster Java release cycle and love …
Read Article about IntelliJ IDEA Project/Module and latest Java setup (Java 17 or newer) →
In Java What is a Difference Between IdentityHashMap and HashMap + Performance Comparison
Sometime back I have a special case in which I have to compare Map's Key based on equality operator (==). The equality operator (==) compares the references (addresses in memory) of the two …
How to Run Multiple Threads Concurrently in Java? ExecutorService Approach
Let's take a look at this example again: How to get Ping Status of any HTTP End Point in Java? Have you noticed the thread execution for that example? It's sequential. What if you have 500 …
Read Article about How to Run Multiple Threads Concurrently in Java? ExecutorService Approach →
Java Stream API Operations and Lambda Expression Tutorial
Java is a collection of APIs and with the introduction of Java 8, we do have more choice than before. java.util.stream API supports functional-style operations on streams of elements, such as …
Read Article about Java Stream API Operations and Lambda Expression Tutorial →
How to Read a File line by line using Java Stream – Files.lines() and Files.newBufferedReader() Utility APIs
Java 9 already in full swing and ready for feature complete by end of May. Even though Java 8 released couple of years back, I'm sure there are very few companies moved to even Java 8 JDK for their …