Archive for December, 2009

URI Template in Spring MVC 3.0

URI-template is a string containing one or more variables or place holders which can be replaced to generate URL out of this. Though this feature appears simple, but uses of this can be significant. Suppose we want to have valid a user id or a session id with each in coming request. Instead of retrieving [...]

Spring

Spring MVC 3.0 Tutorial

In this post, I am going to give you a start up code base for a Spring MVC 3 based application. If you want to go back and refer to the previous version of Spring MVC then this article will help you. I am assuming that the reader is already aware of Java 5 and [...]

Spring

Programmatic Compilation with Java

Till date we all know that Java compilation is not a runtime business. Write code, compile and generate byte code, deploy and run it on any jvm. But this restriction is removed from java 6. Now compilation is no more a pre-runtime business. Using APIs provided by java 6, we can generate classes runtime and [...]

Java

Facebook Changes Default Privacy Settings

OK! Not sure how much you are concern about it, and how much data you have uploaded there. I am talking about your data on facebook. I hope you have already gone seriously through the default privacy settings and selected only those options if data which you really want to expose to world. I know [...]

Headline

Core Spring Interview Questions

What is Spring?

Spring is an open source enterprise application development framework, which is primarily based on IOC (inversion of control) or DI (dependency injection) design pattern. It provides ready container to create and manage objects and also provides enterprise services to those objects. It provides ready components for different tiers of application e.g. web, middle/business [...]

Question Bank

Litmus Test for a Good Java Programmer

There are many certification and exams available in Java world which check if you have acquired enough competency in this technology.  You may have taken may of those and cleared with high scores. But here is something which comes from my experience of Java developers around me. Ask these simple test questions to yourself and [...]

Java

Can We Have This in Java?

If you ask anybody using Java (or someone even not using Java), what is special about Java? The answer will definitely have two things- platform independent language and garbage collection. There will be a long list of other items but these two will be on top the list.

Java

Object Oriented Concepts and Much More

These articles explain the object oriented concepts in detail. UML representation of most of the concept is provided in these articles. Also Java code examples are available to explain the concepts better.  Here is the list of articles.

Java

Encapsulation or Modularization in Object Oriented Programming

Encapsulation is hiding information. Encapsulation hides implementation details from world and exposes only the contract. In case of a class, the methods exposed without private access modifier defines the contract of that class. How these methods are implemented is never known to the users of these methods.

Java

Polymorphism in Object Oriented Programming

Polymorphism means poly multiple forms. Many shapes. In object oriented programming, polymorphism means the type of object is determined as late as at runtime. What does it mean, and what do we achieve by this? Let us take an example. We have following classes.

Java