Java Byte equals() methodThe equals() method of Java Byte class compares the given object to the specified object. Syntax:Parameters:The parameter 'obj' represents the object to be compared. OverridesThe equals() method overrides equals in class Object Return ValueThis method returns:
Example 1Test it NowOutput: 67 and 127 are not equal. Example 2Output: Enter your 2-digit password : 11 Congratulations! Your password Matched. Example 3Test it NowOutput: Error:(7, 17) java: integer number too large: 09 Next TopicJava Byte |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India