why the output is false? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
+ 1
Thank sir
29th Jun 2020, 5:23 AM
Zwe Thu
Zwe Thu - avatar