In this Java Tutorial we will go over all detailed steps required for you to use Singleton pattern in your Enterprise Project. We use Singleton object to push required data at runtime and we use the …
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 Create Singleton QUEUE Global Object – FIFO (First in First Out) in Java?
What if you want to implement your own Queue class in Java? The Queue module provides a FIFO implementation suitable for multi-threaded programming. It can be used to pass messages or other data …
Better Understanding on Checked Vs. Unchecked Exceptions – How to Handle Exception Better Way in Java?
Checked Exception What is Checked Exception in Java Programming language. In simple language: Exception which are checked at Compile time called Checked Exception. Some these are mentioned below. If …
Cassandra and java.lang.UnsatisfiedLinkError: no snappyjava in java.library.path Error
I'm running Apache Cassandra on my MAC OS 10.9.4 and while running it I got below error in my Eclipse Console. Seems only appears on MAC OS X. No error on Windows system. Java Version I'm …
What is Cross-Origin Resource Sharing (CORS) – How to add it to your Java Jersey Web Server?
How to fix this error during client-server communication? Server sends data in JSON or XML format and client throws below exception. XMLHttpRequest cannot load https://crunchify.com/api/test. No …
Embedded Web Server Tutorial: How to Start Embedded HTTP Jersey server during Java Application Startup
Sometime back I've written a tutorial on How to build RESTful Service with Java using JAX-RS and Jersey. After all detailed steps you have to deploy your project to Tomcat Web Server and you should be …
Exception in thread “main” java.lang.UnsupportedClassVersionError: com/crunchify/Main : Unsupported major.minor version 51.0
Recently I faced this wired exception while running my Java application on Linux environment. java.lang.UnsupportedClassVersionError: com.crunchify.testClass : Unsupported major.minor version 51.0 …
How to Send an Email using Java MailAPI with Large Image as an Attachment
The JavaMail API provides a platform-independent and protocol-independent framework to build mail and messaging applications. The JavaMail API is available as an optional package for use with Java SE …
Read Article about How to Send an Email using Java MailAPI with Large Image as an Attachment →
Implement Simple Threadsafe Cache using HashMap without using Synchronized Collection
A cache is an area of local memory that holds a copy of frequently accessed data that is otherwise expensive to get or compute. Examples of such data include a result of a query to a database, a disk …
A Simple Singly Linked List Implementation in Java
In this tutorial I'll show simple Implementation of Singly Linked List in Java. A linked list is a series of nodes in memory such that: There is a starting node. Each node contains a …
Read Article about A Simple Singly Linked List Implementation in Java →
Best Way to Compare if Two Arrays are Equal
This is a very simple example which compares two Arrays for equality. Arrays.equals() returns true if the two specified arrays of Objects are equal to one another. The two arrays are considered …
Read Article about Best Way to Compare if Two Arrays are Equal →
How to Get a List of Current Open Processes with Java?
This is a simple Java Program which grabs all running Process on system and prints each process line by line. We will use class Runtime. Every Java application has a single instance of …
Read Article about How to Get a List of Current Open Processes with Java? →