public class demo{ public static void main(String args[]) { System.out.println(args[0]+""+args[args.length-1]); }}
a) The snippet compiles, runs and prints “java demo”
b) The snippet compiles, runs and prints “java code”
c) The snippet compiles, runs and prints “demo code”
d) The snippet compiles, runs and prints “I code”
What will be the output of the following Java code snippet running with “java demo I write java code”?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following Java code snippet running with “java demo I write java code”?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!