What will this code print (java)
int arr[] =new int[15];
System.out.println(arr);
(i) 0
(ii) value in arr[0]
(iii) 0000
(iv) garbage value
Answers
Answered by
4
iv) garbage value
Hope it helps
Hope it helps
sizaB:
If it had really helped you then please mark it as brainliest
Answered by
2
Hey!
I think The Answer Is Class name@ hashcode in hexadecimal form
But it is not in the option.
Explanation If we trying to print any reference variable internally, toString() will be called which is implemented to return the String in following form:
classname@hashcode in hexadecimal form
I think The Answer Is Class name@ hashcode in hexadecimal form
But it is not in the option.
Explanation If we trying to print any reference variable internally, toString() will be called which is implemented to return the String in following form:
classname@hashcode in hexadecimal form
Similar questions