Did you ever wonder why the Java programming language has two ways to compare for equality? There is the equals method as well as the == (double equals) operator. Do you want to learn what the difference between the two is and why Java offers both?
There are some important pitfalls to keep in mind!
In this video, I am going to show you how to compare two strings for equality, what reference equality and object equality are, and when to use which!
If you have any suggestions for content or feedback please leave them in the comments.
In case you enjoyed this video, make sure to leave like, subscribe and share it with anyone you could consider interested!
On this page of the site you can watch the video online Java – .equals() vs. == (What is the difference? Why do both exist?) with a duration of hours minute second in good quality, which was uploaded by the user The Self-Taught Software Engineer 26 August 2021, share the link with friends and acquaintances, this video has already been watched 334 times on youtube and it was liked by 16 viewers. Enjoy your viewing!