What will be the output of the following program.
Correct Answer : B
Execution of program starts with
main method. Two variables of type
breadth are delared and initialized. Then a method called
calculateArea is called passing 2 variables as parameters and
int as the return type. The return value is stored in variable
area. This moves control to the method
calculateArea. The method calculates area as
area = width * breadth = 20 * 30. This value is returned and stored in variable
area which is then printed.