Object Oriented Programming with java test codes