Home / MCQ Bank / Computer
Computer Miscellaneous In Java Difficulty: Medium

What will be the output of the following Java program? class Output { public static void main(String args[]) { int arr[] = {1, 2, 3, 4, 5}; for ( int i = 0; i < arr.length - 2; ++i) System.out.println(arr[i] + " "); } }

Select the correct option to test your answer:

More Computer Questions

. . . . . . . . is used when you want the sink to be the input source for another operation. ___________ describes CSS properties to manipulate the position of “ruby”, which are small annotations on top of or next to words, especially common in Chinese and Japanese. A(n) ________ in the Record Selector indicates a new record. If the conversion characters of int d, i, o, u and x are preceded by h, it indicates? What is the purpose of Hadoop's Knox Gateway in a Hadoop security context?