Class test of JAVA