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"); } }
1 Answer
+ 1
Thank sir
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"); } }