Home | Blog | Java | Jokes | Poems | Musings | Site Map | Kudos | Downloads | Useful Sites | Interesting | System Setup | Contact

Home Page

AKGBackup - The backup program

            

 

Section 5 : Operators and Assignments


Determine the result of applying the boolean equals (Object) method to objects of any combination of the classes java.lang.String, java.lang.Boolean, and java.lang.Object.


 

The equals method defined in class Object returns true if and only if x and y refer to the same object in the following expression:

            x.equals (y);

In case of equals method defined in Boolean class it returns true only and only if the argument is not null and is a Boolean object that represents the same value as this object.

In case of String class, this method returns true if and only if the argument is not null and is a String object that represents the same sequence of characters as this object.

For any non-null reference value x, x.equals(null) will always return false.

 


section5-1-1 | section5-1-2 | section5-2 | section5-3 | section5-4

Sections : 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11

 
 

 

 

Home | Blog | Java | Jokes | Poems | Musings | Site Map | Kudos | Downloads | Useful Sites | Interesting | System Setup | Contact  

Loading

 Number of Pages viewed on this site since January' 2003 : Hit Counter eXTReMe Tracker

For any queries, comments or suggestions, write to me .

This site never compromises your privacy, please read this site's privacy policy.