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 …
Java and J2EE Tutorials Archives...
One of my favorite language Java is a programming language and computing platform developed by Sun which is acquired by Oracle now. J2EE is Java Enterprise Edition, which consists of core Java with a powerful set of libraries.
On Crunchify, we do have more than 600+ Java and J2EE tips with additional production ready utilities. Explore all tutorials below.
How to Check if Number is Prime or not in Java? How to Generate 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 …
Read Article about How to Check if Number is Prime or not in Java? How to Generate Prime Number? →
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. [crayon-603c34fd07ba6211132096/] 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 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 …
Java SSLSocket with TLS1.3 and TLS_AES_128_GCM_SHA256 Cipher Example
How to send TLS1.3 HTTPs request to your domain and print response? SSLSocket class extends Sockets and provides secure socket using protocols such as the "Secure Sockets Layer" (SSL) or IETF …
Read Article about Java SSLSocket with TLS1.3 and TLS_AES_128_GCM_SHA256 Cipher Example →
What is Lock(), UnLock(), ReentrantLock(), TryLock() and How it’s different from Synchronized Block in Java?]
In this tutorial we will go over Lock(), UnLock(), ReentrantLock(), TryLock() and how it's different from Synchronized Block in Java. If you have also below questions then you are at right …
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 …
Simplest way to generate logs in Java using java.util.logging’s SimpleFormatter and XMLFormatter
Java comes with lots of utilities. In this tutorial we will go over simplest way to generate log files using SimpleFormatter and XMLFormatter. On Crunchify, we have published few tutorials about …