Creating Method - Java Quiz Question


What will be the output of the following program?


A
125
B
Compilation Error because cube is already defined in the java.lang.Math class.
C
Throws an arithmetic exception.
D
Compilation Error or Runtime Error for some other reason.