Java Blog

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:

Apache (ASF) Resigns from JCP Committee

11/01/2011
chimp
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
jvm memory
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
relax
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
new_as_old
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 [...]

Getting Started with AJAX using Java

21/07/2010
After AJAX call
AJAX is an acronym for Asynchronous JavaScript And XML. AJAX provides an ability to communicate with the server asynchronously. Here asynchronous is the keyword. To explain that in simple terms, you can send a request to server and continue user interaction with the user. You need not wait for response from the server. Once the [...]

JAG is Now Unemployed!

15/07/2010
jag
I recently noticed that James Gosling moved his blog from sun’s site to his own blog with a cool domain name. Also, I noticed in his bio that he is unemployed. Yes, you read it right, James Gosling is unemployed! Oracle bought Sun some time back. We are all eagerly watching the events aftermath. I [...]

Prototype Design Pattern

14/07/2010
prototype
When creating an object is time consuming and a costly affair and you already have a most similar object instance in hand, then you go for prototype pattern. Instead of going through a time consuming process to create a complex object, just copy the existing similar object and modify it according to your needs. Its [...]

Address of a Java Object

05/07/2010
logicaladdress
In conventional java programming, you will never need address or location of a java object from memory. When you discuss about this in forums, the first question raised is why do you need to know the address of a java object? Its a valid question. But always, we reserve the right to experiment. Nothing is [...]

Association, Aggregation, Composition, Abstraction, Generalization, Realization, Dependency

26/06/2010
Dependency
These terms signify the relationships between classes. These are the building blocks of object oriented programming and very basic stuff. But still for some, these terms look like Latin and Greek. Just wanted to refresh these terms and explain in simpler terms. Association Association is a relationship between two objects. In other words, association defines [...]

Email:

about
I am Joe, author of this blog. I run this with loads of passion. If you are into java, you may find lot of interesting things around ...more about me. Google+
java badge
Home