Java ClassLoader (1) – What is a ClassLoader?

In this article we will give a very simple explanation of what ClassLoaders do in Java. This article starts a series, and in following articles we will show some ways of “replacing” the default class loader and what interesting things come out of it.

In contrary to such languages like C++ or Fortran where source code [...]

Internationalization with MessageFormat

In this post I want to show a quick example of how to internationalize your application in a easy simple way by taking advantage of MessageFormat class.
The design is fairly simple: for each single locale/language we have a properties file with translated messages. At the start we load the properties into a MessageGenerator object and [...]

Scripting in Java

Did you know that you can compile and run scripting languages like JavaScript, Python, Ruby and many others directly from your Java code? API responsible for it has been created as a result of Java Specification Request 223 and sits in the javax.script package.
Let’s see on a minimalist example how to use the Java Scripting [...]