Puzzler: the catalyst method does not work

Recently I wrote a post about a catalyst method in Java – an issue where an existence of a method that is never actually invoked can affect the code execution. The trick was that the way compiler created bytecode for static method was ambiguous for this given code snippet and therefore JVM resolved it incorrectly.
The [...]

Serialization to XML

We will show here a method to serialize an instance of a class to an XML file. We will use the java.beans package and contained there classes XMLEncoder and XMLDecoder.
First we need a class to serialize:

public class SerializeMe {
public Integer data;

public void setData(Integer data) {
[...]

Welcome to JavaBlogging!

As this is the first post let me state what do we plan to do here. Unlike tons of blogs out there dealing with Java, we will not be focusing on JEE, Struts, Spring, AJAX or any enterprise technology. The plan is simple: blog about a pure Java in a way that any programmer can [...]