Results 1 to 4 of 4
  1. #1
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default equals and contentEquals methods

    Can anyone tell me the main difference between equals() and contentEquals() methods of String ?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,900
    Rep Power
    5

    Default Re: equals and contentEquals methods

    Why do you need to ask? just check out the javadoc, that's what it is there for.

    Tip:

    - go to google
    - type in "java 7 String"
    - first hit

  3. #3
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default Re: equals and contentEquals methods

    I didn't get that; thats why I asked ... both are working in same way with same arguments ...
    Last edited by allaudin; 07-04-2013 at 05:45 PM.

  4. #4
    Toll's Avatar
    Toll is offline Senior Member
    Join Date
    May 2011
    Location
    Sweden
    Posts
    392
    Rep Power
    4

    Default Re: equals and contentEquals methods

    Not sure which Javadoc you're looking at, but as far as I can see, they don't take the same arguments...

Similar Threads

  1. Replies: 8
    Last Post: 04-16-2012, 11:00 PM
  2. Replies: 3
    Last Post: 05-12-2011, 05:07 AM
  3. c always equals a*b
    By imorio in forum New To Java
    Replies: 3
    Last Post: 11-12-2010, 02:32 PM
  4. need help using equals methods
    By ShinTec in forum Advanced Java
    Replies: 3
    Last Post: 04-05-2010, 03:19 AM
  5. Replies: 0
    Last Post: 01-25-2008, 11:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •