Java programming
30.1K subscribers
131 photos
12 files
20 links
Download Telegram
September 14, 2020
September 14, 2020
September 14, 2020
September 14, 2020
September 14, 2020
September 14, 2020
September 14, 2020
September 14, 2020
September 14, 2020
September 14, 2020
public class Madam
{
public static void main(String[] args) { int a = 5; System.out.println(cube(a)); } static int cube(int theNum) { return theNum * theNum * theNum; } }
Anonymous Poll
51%
125
27%
Compilation Error because cube is already defined in the java.lang.Math class.
12%
Throws an ArithmeticException.
10%
Compilation Error or Runtime Error for some other reason.
September 14, 2020
June 12, 2021
June 12, 2021
June 12, 2021
June 12, 2021
June 14, 2021