Java: Classes in Java Applications