What is == in Java?

“==” or equality operator in Java is a binary operator provided by Java programming language and used to compare primitives and objects . In terms of comparing primitives like boolean, int, float “==” works fine but when it comes to comparing objects it creates confusion with the equals method in Java.

Sizin İçin Seçtik  Kurs ve Meslek sitesi güvenilir mi?

Leave a Reply

Your email address will not be published. Required fields are marked *