'==': does reference check
while .equals() method: checks the contents of the two String objects.
The following example will illustrate the difference between the two:
World of tricky Core Java Q&A(Java SE),Java EE and Open source technologies like Struts,Hibernate,Spring,Velocity etc
Disclaimer
Interview Questions On Java,Java EE Copyright © 2012
0 comments:
Post a Comment