What will be the output of the following program?
Correct Answer : A
The program execution starts from the
main method. Two objects namely
c are created, the value of the product is stored in the variable
multiply and the respective values are printed using the variables defined in those classes. Since the object
c is an instance of the class
PrintA, the values of
Hence, the answer is A.