The provided Java code consists of three classes: TestScores, TestScoreAverage, and TestScoreDemo. TestScores manages test scores, TestScoreAverage calculates averages and grades, and TestScoreDemo serves as a driver program to demonstrate functionality. Together, they organize and handle test scores effectively.