Java Collection Framework is one of the most used section. There are more than 100 APIs are available for us to use at fingertips. synchronizedMap() returns a synchronized (thread-safe) map backed …
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: How to Copy Properties from One Bean to Another
Most Java developers are used to creating Java classes that conform to the JavaBeans naming patterns for property getters and setters. It is natural to then access these methods directly, using calls …
Read Article about Java: How to Copy Properties from One Bean to Another →
How to Fix Maven Artifacts Could not be Resolved Error? Exclude jms, jmxri & jmxtools JAR Dependencies
I remember long time ago, I faced the same error and I tried fixing it by manually adding .jar files to my maven repository locally. I executed below command to install it in my localhost …
Java 10 Released with Parallel Full GC, Application Class-Data Sharing – Java SE 10 (JDK 10)
Java 10 is out in the world now. At Crunchify, we have been working with Java 9 since long time and recently we have upgraded to Java SE 10 aka JDK 10.0 But let's go over first thing first. How to …
How to Implement Linux PING utility command in Java?
If you are a programmer then you have to perform Ping operation multiple times everyday during some manual testing or using automated JUnit testing. Here at Crunchify, we have published multiple …
Read Article about How to Implement Linux PING utility command in Java? →
How to generate Simple Timeout Exception in Java?
In Java how to generate simple TimeoutException? In this tutorial we will generate Timeout error calling Google.com with simple 10 millisecond delay. CrunchifyGenerateTimeout is a public call in …
Read Article about How to generate Simple Timeout Exception in Java? →
In Java How to Convert Current Time to Epoch Time – Instant, ZoneID Example
Are you working on Java Enterprise project? What if your customers are located in different Geo location? It's always good practice to show your users their local time on UI page. Wondering how to …
Read Article about In Java How to Convert Current Time to Epoch Time – Instant, ZoneID Example →
How to Call Your Restful Web Service Using JMeter? Perform a Simple Load Testing and Automation
Representational State Transfer (REST) has gained widespread acceptance across the Web as a simpler alternative to SOAP- and Web Services Description Language (WSDL)-based Web services. Key …
In Java How to Read GitHub File Contents using HttpURLConnection + ConvertStreamToString() utility
In this Java Tutorial we will go over steps to retrieve GitHub URL content using HttpURLConnection. In other words below is a Java API to get a file content from GitHub. Each HttpURLConnection …
How to Create Temporary File in Java?
Hello all - Hope you had wonderful Christmas holidays. Merry Christmas to all of you. Also a very Happy New Year in advance. We are back after our long vacation. As you may have noticed long break …
In Java8 – How to Convert Array to Stream using Arrays.stream() and Stream.of() Operations
Java8 is pretty amazing. With lots of new features and Stream APIs Java8 is one of the best release we had last year. In this tutorial we will go over how to convert Array to Stream using Java8's …
How to Implement Insertion Sort Algorithm in Java? Detailed Example Attached
Java Insertion Sort algorithm logic is one of the many simple questions asked in Interview Questions. It sorts array a single element at a time. Very efficient for relatively small to medium set of …
Read Article about How to Implement Insertion Sort Algorithm in Java? Detailed Example Attached →