1024programmer Blog Java’s equals method_Java Boolean class equals() method and examples_cumubi7453’s blog

Java’s equals method_Java Boolean class equals() method and examples_cumubi7453’s blog

The equals method of java

Boolean class equals() method(Boolean class equals() method)

  • equals() method is available in java.lang package.

    equals() method is available in the java.lang package.

  • equals() method is used to check equality or inequality of this Object against the given Object or in other words we can say this method is used to compare two objects.

    The equals() method is used to check the equality or inequality of this object with the given object, in other words we can say that this method is used to compare two objects.

  • equals() method is a non-static method, it is accessible with the class object only and if we try to access the method with the class name then we will get an error .

    The equals() method is a non-static method that can only be accessed through class objects, if you try to access the method using the class name, you will receive a to the error message.

  • equals() method does not throw a

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/javas-equals-method_java-boolean-class-equals-method-and-examples_cumubi7453s-blog/

author: admin

Previous article
Next article

Leave a Reply

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

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索