Question: Java language Write down the output generated by the code below when Invoked by the command java prog 1 2 5 2: public class prog{public
Java language
Write down the output generated by the code below when Invoked by the command "java prog 1 2 5 2": public class prog{public static int fnc1(int x, int y){if (x > y) return x; else return x + y;} public static void main(String []args){int n = integer.parselnt(args[3]); int i; for(i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
