Calculate Area - Java Quiz Question


What will be the output of the following program.


A
Area : 0
B
Area : 600
C
Compilation Error - since we can not pass value 0 to a method.
D
Compilation Error - since we are not returning the area from the method