CJ: Class structure in Java