+ 1
What is the difference?
Dog dog1= new Dog("Oscar"); Dog dog2= new Dog("Oscar"); System.out.println(dog1==dog2); The result is: false Dog dog1= new Dog("Oscar"); Dog dog2= new Dog("Oscar"); System.out.println(dog1.equals(dog2)); The result is: true?
6 Respostas
+ 2
Thank you RKK for your information.
+ 2
welcome Umidbek ☺️
I hope you've understood.
+ 2
Yes, sure thanks
0
JavaGoal.com. Thank you especially for this: https://javagoal.com/string-comparison-in-java/