If you have a requirement to serialize an object then you have an option to skip serialize specific field by marking it as transient. transient is a Java keyword which marks a member variable not …
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.
Java: MySQL JDBC Connection Tutorial – What is BasicDataSource? How to Create BasicDataSource Object?
Many Apache projects support interaction with a relational database. In Java Development Creating a new connection for each user can be time consuming (often requiring multiple seconds of clock time), …
Java Cookies: How to do Java Servlet Session Management using Cookies
Web Pages have no memories. A user going from page to page will be treated by the website as a completely new visitor. Session cookies enable the website you are visiting to keep track of your …
Read Article about Java Cookies: How to do Java Servlet Session Management using Cookies →
How to use Spring Framework StopWatch() to Log ExecutionTime and ElapseTime of any Java Thread
Spring Framework - StopWatch() is a very handy utility for any Java developer if you have small Java application or production ready application. Most of the Java applications involve Thread pooling …
How to Check if Number is Prime or not in Java? How to Generate and Print first N Prime Number?
What is Prime number? As per definition, Number which is greater than 1 and has only 1 divider which is itself is called Prime number. Other numbers are called Composite Number. Let's take a …
Different Ways to get URL response in Java – GET/POST calls
Java HTTP GET/POST tutorial shows how to send a GET and a POST request in Java. In this tutorial we will go over more than 7 different ways you can get HTTP URL response using GET/POST call. …
Read Article about Different Ways to get URL response in Java – GET/POST calls →
In Java How to Sort a Map on the Values? The Map Interface – Java Collections
In Java How to sort a Map on Value? There are number of ways. Here we will follow below steps. public interface Map<K,V> An object that maps keys to values. A map cannot contain duplicate …
Read Article about In Java How to Sort a Map on the Values? The Map Interface – Java Collections →
Java, MySQL and JDBC Hello World Tutorial – Create Connection, Insert Data and Retrieve Data from MySQL
In this current innovative technology world, there is no place you don't need Database connectivity to perform personalize connection and activity. If you are using Facebook, Twitter or any other …
Java LocalDate(), LocalDateTime(), ZonedDateTime(), Calendar() and Date() Tutorial
On Java, we have published How to Convert Current Time to Epoch Time and How to Calculate the Difference Between Two Java Date Instances tutorials sometime back. In this tutorial we will go over …
In Java How to Perform File Search Operation using java.nio.file interface? Tutorial on File and Directory Operations
Java 8 has so many new functionalities and collection of features which are hidden inside packages. In this tutorial we will go over java.nio.file.Path interface. Path is an object that may be …
Java ConcurrentNavigableMap and ConcurrentSkipListMap Tutorial with all Details (java.util.concurrent.*)
Sometime back I've written an article on difference between HashMap, ConcurentHashMap and SynchronizedMap. In this tutorial we will go over ConcurrentNavigableMap and ConcurrentSkipListMap with all …
Java: How to Get Entity ContentType in HttpClient? – response.getEntity()
This code snippet show you how to get the content type of a result of executing an Http Get request. TheContentType can be obtained by using ContentType.getOrDefault() method and …
Read Article about Java: How to Get Entity ContentType in HttpClient? – response.getEntity() →