Raise your hand, we will come to you with mic. 3. Who answers first wins. 4. For why questions, answer should be descriptive? Only guessing an option will not be considered as answer. 5. Be a good citizen, one person is eligible to answer only once
method must be public. 2. The method may be any accessibility type except private. 3. The method may be either an instance method or static. 4. The argument list must be declared exactly as String [] args. 5. The argument list may be declared as String… args.
Test { public static void main(String... x) { int[] arr = new int[9]; for (int i = 0; i < arr.length; i++) { arr[i] = i; } System.out.println(arr[9]); } }
public static void main(String... x) { StringBuffer buffer = new StringBuffer('H'); buffer.append('i'); System.out.print(buffer); } } 1. Compile Time Error 2. Prints “Hi” 3. Prints “H” 4. Prints “i”