How do you instantiate an array in Java?
(a) int arr = new int(3);
(b) int arr;
(c) int arr = new int;
(d) int arr() = new int(3);
This intriguing question comes from Array and Array Operations in portion Abstract Data Types of Data Structures & Algorithms I
This question was addressed to me at a job interview.