This is my blog on java, servlets, JSP and design patterns. I started this blog just to keep my java knowledge updated and to maintain a log of the java questions that arise in my mind. Now it has turned out to be a full blown java blog and tutorial site with lots of articles and java interview questions. This might help you to keep your java knowledge updated and also to prepare for your java interview, java certifications. Its all there, I welcome you to use and enjoy it. Good day!
Recent Java Articles:
Android Hello World
05/02/2011
Last week my wife gifted me a new mobile wishing not to miss her calls anymore. My (very very) old mobile celebrated its 7th birthday and I decided to allow it to RIP. For one reason, I held on to it for these many years. It simply did what its supposed to do, making/receiving calls [...]
Java Array
31/01/2011
When you need to store same ‘type’ of data that can be logically grouped together, then you can go for java array. For example, imagine if you had to store the list of countries in individual java variables and manipulate them. You will have more than hundred variables to manage. Can’t imagine, it would be [...]
Java Double Brace Initialization
26/01/2011
Double brace initialization is a combination of two separate process in java. There are two { braces involved in it. If you see two consecutive curly braces { in java code, it is an usage of double brace initialization. First brace is creation of an anonymous inner class. Without considering the second brace if you [...]
Wordle – Word Clouds
21/01/2011
From now onwards I am starting up a series, where in I will share cool java applications that I come across. I don’t want to keep my blog stiff. Even some friends have started commenting that, we get exam fever when we stumble on javapapers.com Sometimes I couldn’t resist myself when I see a nice [...]
Log4J Levels
16/01/2011
This log4j post is a tutorial post describing different levels of logging in log4j. This is for log4j beginners only but if you wish to refresh, go ahead and enjoy! Log4j logger contains three main components namely logger, appender and layout. Logger takes care of the logging mechanism and deals with level of logging. Log4j [...]
Apache (ASF) Resigns from JCP Committee
11/01/2011
It’s one month old news as of today. Still if you are not aware, Apache software foundation one of the most respected group and it moves away from JCP citing license issues and Oracle’s strong hold on java. Java benefited in many ways for more than 10 years from Apache. It chaired the JCP executive [...]
Java (JVM) Memory Types
06/01/2011
Java has only two types of memory when it comes to JVM. Heap memory and Non-heap memory. All the other memory jargons you hear are logical part of either of these two. Heap Memory Class instances and arrays are stored in heap memory. Heap memory is also called as shared memory. As this is the [...]
Java Primitive
25/11/2010
As of the Java Virtual Machine Specification second edition, numeric types, the boolean type (§3.3.4), and the returnAddress type are the three java primitive types supported by JVM. Most of you may get annoyed, we all know about the primitives of java. That is where from we all started it. But, you may not be [...]
Type Erasure
27/07/2010
Java generics uses Types. If you are not still using java generics, following example code explains you a simple generics usage: package com.javapapers.sample; import java.util.HashMap; import java.util.Map; public class TypeErasure { public static void main(String args[]) { Map<String, String> languageMap = new HashMap<String, String>(); languageMap.put("1954", "FORTRAN"); languageMap.put("1958", "LISP"); languageMap.put("1959", "COBOL"); String language = languageMap.get("1954"); System.out.println("Our [...]


















