Home / MCQ Bank / Computer
Computer Introduction To Data Structures Difficulty: Medium

What is the output of the following Java code? public class array { public static void main(String args[]) { int []arr = {1,2,3,4,5}; System.out.println(arr[5]); } }

Select the correct option to test your answer:

More Computer Questions

Choose the exceptions generated by the GetResponseStream() method defined by WebRequest. What will be the output of the following Java program? class newthread implements Runnable { Thread t; newthread() { t = new Thread(this,"My Thread"); t.start(); } } class multithreaded_programing { public static void main(String args[]) { new newthread(); } } What is the purpose of method overriding in Java? What is the best case time complexity of binary insertion sort? In a B-Tree of order m, what is the minimum number of keys a non-root node must contain?