Java programs exploration.