Can you use == to compare objects?

In Java, the == operator compares that two references are identical or not . Whereas the equals() method compares two objects. Objects are equal when they have the same state (usually comparing variables).

Sizin İçin Seçtik  2021 3 çeyrek bilanço ne zaman açıklanacak?

Leave a Reply

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