Core Java Archive

Using WildCards for Resolving Classpath

This short note explains how to use WildCards for resolving classpath when using Java Compiler Versions 1.6 and above.

Format Currency in Java

This tutorial explains various currency formatting (default formatting as well as for specific currency) in Java using NumberFormat API and format() function.

Install multiple JDKs on Mac OS X

In this post we shall see how to install multiple JDKs on Mac OS X, and also switch between them easily as and when required.

Convert Java Object to/from JSON using Jackson

This tutorial explains how to convert Java Object to/from JSON using Jackson library along with a sample implementation.

Using serialVersionUID

This tutorial explains the importance of versioning Serializable objects using serialVersionUID along with some of the best practices to be followed for Serializable classes.

JavaBean Standard

This tutorial explains the Sun JavaBean Specification, such as rules for creating a JavaBean, properties, naming rules etc

Why use getters and setters

This post explains us as to why we should be using getters and setters which contain nothing rather than providing direct access to class field members.