Java Tutorial

Javapapers is a java tutorial site passionately maintained by Joe. Tutorials written are of Java, Servlets, Jsp, Spring framework, Android and design patterns. Javapapers stands out from the crowd by providing in-depth tutorial on each topic at the same time keeping it simple. This helps to refresh your Java knowledge, keep updated with latest Java news, prepare for Java interview, and Java certifications. Welcome!

Recent Tutorials

Java ArrayBlockingQueue

29/09/2014
This Java tutorial is to discuss about ArrayBlockingQueue which is an implementation for a Java BlockingQueue Collection. We will see a producer consumer based example using ArrayBlockingQueue to understand the BlockingQueue interface. ArrayBlockingQueue is based on a bounded Java array. Bounded means it will have a fixed size, once created it cannot be resized. This […]
This tutorial was added to Java.

Java BlockingQueue

29/09/2014
BlockingQueue Collection is a type of Java Queue. BlockingQueue is part of Java concurrent util package. It is best used in multi threading and producer-consumer scenarios. While adding an element to a a BlockingQueue, if there is no space it can wait till it becomes available. Similarly while retrieving, it will wait till an element […]
This tutorial was added to Java.

Managed Versus Non-Managed Environments

24/09/2014
This Hibernate tutorial is to understand the difference between having a managed vs non-management environments. Configuring Hibernate requires us to determine the type of environment that Hibernate is going to function. Managed and Non-managed are two different types of environments where Hibernate will fit in the architecture comfortably. Both these environments have their own advantage […]
This tutorial was added to Hibernate.

Hibernate Architecture

24/09/2014
This Hibernate tutorial is to go through the Hibernate architecture to know about the components involved. It is important to understand the Hibernate architecture and know the main components. It will certainly help when we deal with different type of Java applications. Hibernate Simplistic View Lite architecture shown below depicts all parts used when the […]
This tutorial was added to Hibernate.

Hibernate Advantages

24/09/2014
In this Hibernate tutorial page, we will see about the advantage of using the Hibernate as the Object Relational Mapping (ORM) layer in a Java application. We will start with the advantages of ORM and then move to the Hibernate advantages. Advantages of Object Relational Mapping As mentioned earlier, Object Relational Mapping is solution mainly […]
This tutorial was added to Hibernate.

Hibernate Introduction

24/09/2014
Hibernate is the most popular Object Relational Mapping (ORM) library available for Java. Hibernate is used to map and manage the application domain object model in sync with the underlying relation model. It is provided by JBoss and it is one of the oldest ORM implementation available for Java. Using an Object Relational Mapping library […]
This tutorial was added to Hibernate.

Java List size Puzzle

23/09/2014
This is a Java puzzle involving the Collection List interface. This is a Java beginner level puzzle and will help understand how the size works in List element. What is the output for the following Java code snippet? package com.javapapers.java.puzzle; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class ListPuzzle { public static void main(String args[]) […]
This tutorial was added to Java.

A WordPress Blog Performance Optimization (Horror) Story

22/09/2014
This is a JavaPapers story. How I nosedived into deep pit and how I am trying to get out of it. This is not to bash anybody, in particular the WordPress or the Hosting provider, because all I got to blame is me and only me. Prelude javapapers.com is running on a WordPress platform. I […]
This tutorial was added to Misc.

Why Object is Super Class in Java?

04/09/2014
java.lang.Object class is the super base class of all Java classes. Every other Java classes descends from Object. Should we say the God class? Why is that so? This Java article is to discuss around it. In Mathematics, an axiom is a starting point of reasoning using which other statement can be logically derived. The […]
This tutorial was added to Java.

Java Collections Interview Questions – Part I

03/09/2014
Following are the Java collections interview questions most frequently asked in interviews. I have attempted to keep the answers short and simple, as the objective is to help you prepare and revise topics for interviews quickly. Java Collections Interview Questions How to filter a Java collection? How to sort a Java Collection? Best way to […]
This tutorial was added to Java.