class main_arguments { public static void main(String [] args) { String [][] argument = new String[2][2]; int x; argument[0] = args; x = argument[0].length; for (int y = 0; y < x; y++) System.out.print(" " + argument[0][y]); } }
a) 1 1
b) 1 0
c) 1 0 3
d) 1 2 3
What will be the output of the following Java program, if we run as “java main_arguments 1 2 3”?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following Java program, if we run as “java main_arguments 1 2 3”?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!