?
Predict the output:
Predict the output:
public class Test{
public static void main(String... args){
int[] index = new int[5];
System.out.println(index instanceof Object);
}
}
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.
Join the Discussion
Login to post a comment or share your explanation.
Login