This Java program defines a Quadratic class to calculate and print the real solutions to a quadratic equation. It takes in coefficients a, b, and c, and uses the quadratic formula to determine the roots. If the discriminant b^2 - 4ac is negative, it displays a message that there are no real solutions, otherwise it prints the two roots. For a test case of a=3, b=4, c=2, it checks if the roots are equal or real and prints the appropriate output.