MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of the following snippet running with “java demo I write java code”? 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” |
| Answer» E. | |