B
byhesed
I know that primitive type variables cannot be converted to class
type, right?
But, how can the below code operate well?
   System.out.println(new int[10] instanceof Object);
The result is "true".
I am thinking that it is weird.
Isn't the anonymous array primitive type, is it?
Then, how can it be converted to class type, in this case, Object?
I think I know something incorrectly.
Please correct my wrong idea.
type, right?
But, how can the below code operate well?
   System.out.println(new int[10] instanceof Object);
The result is "true".
I am thinking that it is weird.
Isn't the anonymous array primitive type, is it?
Then, how can it be converted to class type, in this case, Object?
I think I know something incorrectly.
Please correct my wrong idea.