javafreakers tutorials

Welcome to my website javafreakers. I write these articles from my experience in technical fields. The purpose of writting these article is to share knowledge. I write mainly Spring, Hibernate, JSF, Servlet, JSP, jquery.

The source code provided in these article is correct in best of my knowledge and running code. Source code of most of article is available on javafreakers github directory. Although i practice for perfection in my code but still if you find any mistake you can leave your comment or can write your usefull suggestion at my email address

Hope these tutorials help you. If you need any tutorial then please write for it. I will get back within two week with the tutorial you need.

Following category tutorials are available right now. More tutorial in these and other category.


Hibernate is an ORM tool.It is used to persist data in database.There are lot of feature that have been added in hibernate over the years .But when it was started its primarily goal was to persist data in the database.
The problem that hibernate solve are following:-

Mapping member variable to column:-While inserting data to table we map the member variable to column of table.
If we use Hibernate then all this mapping is done by hibernate.

Mapping Relationship:-Let’s there are two table user and address to save data about user and his and his address.
Now in this case address is dependent upon user.To accomplish this we use primary key and foreign key concept.
If we use hibernate then all these relationship are taken care by hibernate.

Handling Data type:- some of databases do not allow some particuler data type to be saved.E.g :Mysql do not allow to save Boolean data type.
So programmer need to manually convert these data types in some another like for true programmer can use Y
and for false programmer can use N of char type.When we use hibernate then this all is handle by hibernate not by programmer.

Managing Object State:- If we need to create object back from the data in the table then we pullup the record
and cast them in object data member variable. Now after creating objects processing is done on the object .
So the value have been changed.To accommodate these changes in data base we need to update the data in the database.Hibernate simplify it. Continue hibernate tutorial


The Spring Framework is an open source framework for application development on the Java platform by rod johnson. At its core is rich support for component based architectures, and it currently has aroung a dozen highly integrated modules including a core Inversion of Control container, data-access and MVC layers, extensive AOP support, task scheduling etc.Now days spring is most popular framework for java application.It can be easily integrated with other framework such as JSF and Struts. Continue Spring tutorial

salesforce is a platform for creating and deploying cloud apps.Your apps run on a secure, proven service that scales, tunes, and backs up data automatically.

Force platform enable you to develop app with your colleagues .you can work more effectively as a team because of data-centric and collaborative. includes pre-built components for feeds, profiles, conversations, updates, and file sharing
Build mobile-optimized browser apps, using UI framework and HTML5 to support any device with one code base.So it is easy to build mobile app you don’t have to learn any mobile programming languages. continue  salesforce tutorial

 miscellaneous tutorials

In miscellanneous articles there are very important topic coverd like how to deploy java web application on remote server  Add facebook share button for web application   openid and OAuth (hybrid-OAuth) in java

Continue Miscellaneous tutorials


A Servlet is a Java application programming interface (API) running on the server machine which can handle requests made by the client and can generate/send a response accordingly. A well-known example is the HttpServlet which provides methods to hook on HTTP requests using the popular HTTP methods such as GET and POST. You can configure HttpServlets to listen on a certain HTTP URL pattern, which is configurable in web.xml, or more recently with Java EE 6, with @WebServlet annotation. Many Java EE web frameworks are built on top of servlets, such as JSF,  Spring MVC, Struts. Continue Servlet Tutorial


Java was originally developed by James goose at Sun Microsystems (which incorporated with Oracle Corporation on2009) and was free in 1995 as a core part of Sun Microsystems’ Java platform.

Java could be a high-level, platform-independent, object-oriented programing language and run-time setting. The Java language derives its syntax from c and c++, however its object model is less complicated than that of c++ and it’s fewer low-level facilities(that why window and other OS are written with in c not in java). Java applications compiled to bytecode that may be exected by a jvm(Java Virtual Machine). The jvm manages memory with the assistance of a garbage to handle object removal from memory once not used to any extent further.

java is platform-independent, meant to permit application developers to “write once, run anywhere” (WORA): code that executes on one platform doesn’t have to be recompiled to run on another machine.
The platform consists of 2 essential software system packages:

the Java Runtime setting (JRE), that is required to run Java applications and applets; and,
the Java Development Kit (JDK), that is required to develop Java applications and applets. The JDK comes with a JRE. Continue Core Java

Hibernate      Spring      Miscellaneous    Servlet     Core Java   Salesforce