0

why the output is false?

public class Program { public static void main(String[] args) { int array1[]={1,2,3}; int array2[]={1,2,3}; if(array1== array2) System.out.print("true"); else System.out.print("false"); } }

29th Jun 2020, 4:55 AM
Zwe Thu
Zwe Thu - avatar
1 Antwort
+ 1
Thank sir
29th Jun 2020, 5:23 AM
Zwe Thu
Zwe Thu - avatar