Q Quốc Ân New member Sep 19, 2021 #1 What will be the output of the following Java code? Code: int arr[] = new int [5]; System.out.print(arr); A. 0 B. value stored in arr[0] C. 00000 D. Class name@ hashcode in hexadecimal form
What will be the output of the following Java code? Code: int arr[] = new int [5]; System.out.print(arr); A. 0 B. value stored in arr[0] C. 00000 D. Class name@ hashcode in hexadecimal form
T Trịnh Quốc Lâm New member Sep 19, 2021 #2 Answer: d 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 Upvote 0 Downvote
Answer: d 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