Computer Science, asked by UnknownDude, 1 year ago

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 sizaB
4
iv) garbage value
Hope it helps

sizaB: If it had really helped you then please mark it as brainliest
sizaB: ok
Answered by prathamesh1855
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
Similar questions