ExamVeda
Login
Home
This question belongs to Java Program Array
Array
?

Predict the output:
public class Test{
public static void main(String... args){
            int[] index = new int[5];
            System.out.println(index instanceof Object);
      }
}

Answer & Solution
Correct Answer: Option A

An array is always an instance of Object.

Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.