What will be the output of the following Java program, Command line execution is done as – “java Output command Line 10
Posted: Wed Jul 13, 2022 7:46 pm
class Output { public static void main(String args[]) { System.out.print((int)args[2] * 2); } }
a) java
b) 10
c) 20
d) error
a) java
b) 10
c) 20
d) error