Java Blog

This is my blog on java, servlets, JSP and design patterns. This might help you to keep your java knowledge updated and also to prepare for your java interview, sun java certification. Its all there, it is left to you how to use it! I started this blog with a selfish reason, just to keep my java knowledge updated and to keep log of the questions that arise in my mind. Now it has turned out to be a full blown java tutorial site with lots of java interview questions and articles. Good day!

Recent Java Articles:

Now the SUN is Red

sun.com now redirects to oracle.com – oracle completes acquisition of sun. Is it a happy news or sad news for sun customers? In particular java guys. Oracle is a strong supporter of Eclipse – what will happen to NetBeans now? Will oracle continue and endorse JCP (Java Community Process)? Will MySQL development continue? Will oracle continue OpenOffice? Will Glassfish live in [...]

January 30th, 2010

Serialize / De-Serialize Java Object From Database

In recent days generalization have become popular in software development. You build a common platform and generate applications out of it to reduce the cost. In such applications an activity that will be frequently performed is serializing java objects to database. There are many fancy tools and framework available to do this. Before using all of [...]

January 9th, 2010

Bye bye GoDaddy

It was a bumpy ride in 2009. Many highs and lows. I enjoyed every moment of it. December 2009 is an important month for javapapers. My hosting provider GoDaddy kept me completely busy. As almost everybody ;-) in the web world I also got my due share of problems from Go Daddy. It all started with [...]

December 28th, 2009

Java Serialization

Have you ever seen what is inside a serialized object? I will explain you what is java serialization, then provide you with a sample for serialization. Finally most importantly, lets explore what is inside a serialized object and what it means. That is internals of java serialization and how does it works. If you want [...]

November 23rd, 2009

Builder Pattern

Complex Object Construction
Builder pattern is used to construct a complex object step by step and the final step will return the object. The process of constructing an object should be generic so that it can be used to create different representations of the same object. For example, you can consider construction of a home. Home is the final [...]

November 17th, 2009

javapapers.com Celebrates 400000 Pageviews

Its been 1.5 years I launched javapapers.com It was a great journey until now. I have utilized every bit of my free time to pursue this dream. I am very happy that this blog has surpassed 400000 page views. Thanks to Google for all the search results. It all started as just a personal log. [...]

November 14th, 2009

Java Peer Class

Peer classes are written by java API developers to interface with native objects. Peer classes should be rightly mentioned as peer interfaces. You can program for the interface as if you are connecting to the C / C++ or any native objects. After doing the programming, you can use javah command line tool that is [...]

November 13th, 2009

Abstract Factory Pattern

Factory of factories. To keep things simple you can understand it like, you have a set of ‘related’ factory method design pattern. Then you will put all those set of simple factories inside a factory pattern. So in turn you need not be aware of the final concrete class that will be instantiated. You can [...]

November 11th, 2009

Happy Birthday Apache

Apache is celebrating 10 years of successful service to software industry. First ‘version 0.6.2′ released to public in April of 1995 and still standing tall. It is not only the sound knowledge and technology that made Apache survive successfully for these many years. It stands on top of its ideology and principles. Every computer user (at [...]

November 6th, 2009

Factory Method Pattern

A factory method pattern is a creational pattern. It is used to instantiate an object from one among a set of classes based on a logic. Assume that you have a set of classes which extends a common super class or interface. Now you will create a concrete class with a method which accepts one or [...]

November 5th, 2009