How to check if file exists in on file system? Sometime at runtime, you may have to find a file and make sure that exists before executing or running any command. You don't want to get an …
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.
When Should I use CopyOnWriteArrayList Vs. ArrayList in Java? Avoid java.util.ConcurrentModification Exception
java.util.List is an ordered collection also known as a sequence. ArrayList is a very basic implementation of List. There are number of articles I've posted on Crunchify before on ArrayList …
How to stop/kill long running Java Thread at runtime? timed-out -> cancelled -> interrupted states
Have you ever wondered how to kill long running Java thread? Do you have any of below questions? Kill/Stop a thread after certain period of time Killing thread after some specified time limit …
How to Parse XML Document using XPath in Java? Java XML XPath Parser Utility
Sometime back I've written a tutorial on How to Write XML DOM into File using Java? It's very simple tutorial with actual real use-case. Last week while working on similar XML and Java issue - I've …
Read Article about How to Parse XML Document using XPath in Java? Java XML XPath Parser Utility →
Java Stream API: Merging Arrays with Explanation and Example
In Java programming, working with arrays is a common task. However, there are situations where you need to merge or concatenate arrays to create a single, larger array. The Java Stream API …
Read Article about Java Stream API: Merging Arrays with Explanation and Example →
Finding the 3rd Smallest Number in Java: A Complete Guide
Have you ever wondered how to efficiently find the third smallest number in an array, list, or stream of integers? In this blog post, we'll dive into the world of Java programming and explore …
Read Article about Finding the 3rd Smallest Number in Java: A Complete Guide →
Exploring the Java Collections Framework: A Comprehensive Guide for Beginners
What is Java Collections Framework? Benefits of Collections Framework? Java Collections are used in every programming language and initial java release contained few classes for collections: …
Read Article about Exploring the Java Collections Framework: A Comprehensive Guide for Beginners →
Java Program to Check if a File is Hidden
In Java how to check if a file is hidden? Explore a Java program that checks whether a file is hidden or not, using logging to track its status. Learn how to set up logging configurations, handle file …
Read Article about Java Program to Check if a File is Hidden →
Creating a RESTful Java Client with Jersey: A Step-by-Step Guide to Getting Started with the Jersey Client
Learn how to build a RESTful Java client using Jersey, making HTTP requests, handling JSON and XML responses. Step-by-step tutorial. This tutorial show you how to use Jersey client APIs to create …
Battle of the Thread-Safe Maps: Performance Showdown between Hashtable, synchronizedMap, and ConcurrentHashMap
Learn about ConcurrentHashMap vs. SynchronizedMap in Java concurrency. Code example & performance analysis. Boost your Java programming skills with Crunchify! HashMap is a very powerful data …
Mastering Number Reversal in Java: Exploring Techniques and Implementations
Explore a Java program showcasing two methods for reversing numbers: using a while loop and recursion. Learn how each technique works and see examples of reversing random numbers. A practical …
Read Article about Mastering Number Reversal in Java: Exploring Techniques and Implementations →
Reversing a Singly Linked List in Java: A Tutorial with Code Example
Learn how to efficiently reverse a singly LinkedList in Java using the CrunchifyReverseLinkedList program from Crunchify.com. This Java program demonstrates a straightforward approach to reversing the …
Read Article about Reversing a Singly Linked List in Java: A Tutorial with Code Example →