‘equals()’ for class ‘String’ has been overridden to check if both the objects represent the same sequence of characters or not. ‘==’ simply checks if both the reference variables have the same value or not. That means, if both the object references point to the same object or not.
Wednesday, May 14, 2008
Difference between == and equals() for two String variables
Related Articles...
Java
Trivia
- what does load-on-startup element mean in web.xml?
- What is the difference between VARCHAR and VARCHAR2?
- Why Prepared Statements are faster? Are they compiled?
- Difference between Client-side & Server-side DB cursors?
- How to invoke an Applet packaged as a JAR?
- Class variable, Member variable, and Local variable
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment