Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

 

and many more ....

 

Receive Java & Developer job alerts in your Area

I have read and agree to the terms & conditions

 

Java Servlet Container Example

In this article we will demonstrate deploying and running a simple web application via a servlet container. In addition to demonstrating how to run the sample web application using a servlet container will also show how to run the sample web application using maven from the command line. For this article we will make use of Tomcat 8.5.x both for ...

Read More »

Log4j Rotation Example

This article is a tutorial about log rotation in Log4j. In this tutorial, we are going to configure log4j via property files. 1. Introduction Log4J(Java) is widely used logging framework for Java. It continues to grow continuously with recent upgrade of Log4j2. We want to rotate log files to avoid log file accumulation and easily segregate logs under the log ...

Read More »

Java 8 Predicate Example

Bipartite Graph

Hello readers, this tutorial explains Java 8 predicate example, which has been newly introduced in the java.util.function package. This package describes the Predicate’s usage with the help of multiple examples. 1. Introduction java.util.function.Predicate is the new functional interface defined in the java.util.function package. The Predicate is used in all the contexts where an object needs to be evaluated for a given ...

Read More »

Java Swing GridLayout Example

Bipartite Graph

In Swing, in order to arrange components in a form, dialog box etc. in user friendly manner layout manager is found to be very useful. There are several layout managers. GridLayout is such layout manager. 1. Introduction GridLayout actually forms a grid like arrangement of cells. This is just like one excel spreadsheet where each cell is of same size. If ...

Read More »

Spring SOAP with XML Example

Web services are the distributed computing mechanism designed to work with open standards and protocols, thus facilitating interoperability among disparate systems. Simple Object Access Protocol (SOAP) was developed by Microsoft as an improvement over the existing technologies like Distributed Component Object Model (DCOM), Common Object Request Broker Architecture (CORBA) and Java Remote Method Invocation (RMI) that relied on binary and ...

Read More »

Java UUID Generator Example

Bipartite Graph

Hello readers, in this tutorial, we are generating the UUID using the Java and Java UUID Generator API. 1. Introduction UUID / GUID (Universally / Globally Unique Identifier) is frequently used in programming. Some of its usages are for creating random file names, session id in the web application, transaction id and for record’s primary keys in the database (i.e. ...

Read More »

Java Convert Csv to Excel File Example

Bipartite Graph

Hello readers, in this tutorial, we are going to implement the Csv to Excel file conversion by using the Apache POI library. This tutorial will show developers how to write large data to an excel file using SXSSF. 1. Introduction SXSSF (Package Name: org.apache.poi.xssf.streaming) is an API compatible streaming extension of XSSF to be used when very large spreadsheets have ...

Read More »

Java Servlet File Download and File Upload Example

Hello readers, in this tutorial, we will show you how to set up the File Upload and Download functionality in a Servlet based Java web application.                     Table Of Contents 1. Introduction 1.1 What is Servlet? 1.2 Servlet File Upload 1.3 Servlet File Download 2. Java Servlet File Download and File ...

Read More »

Spring Web Application Example

In this article we will see how to develop a simple web application using Spring framework. This is a very simple example of developing a spring web application; it does not go into the details of performance, security, scaling etc. 1. Introduction Spring Framework is a Java platform that provides comprehensive infrastructure support for developing Java applications. Spring handles the ...

Read More »

Java Servlet Security Example

The @ServletSecurity annotation is used to define the access control or the security constraints to the servlets. In this tutorial, we will see how to configure the Basic Authentication in the servlets. 1. Introduction If developers are planning on using the Basic Authentication they must be aware that if they use the plain HTTP requests, the username, and password can ...

Read More »