Search:

Type: Posts; User: helloworld922

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    10,447

    Re: While Loop Exit with String

    That's one of the quirky ways java optimizes strings. Instead of creating multiple constant strings, sometimes the Java compiler will recognize that it already has that object and just assigns the...
  2. Replies
    8
    Views
    10,447

    Re: While Loop Exit with String

    Yes, that's exactly why.

    Say we had the two variables:

    Object A and Object B.

    The value contained by A and B are addresses to where some objects are.

    If A==B, then they are pointing to...
  3. Replies
    8
    Views
    10,447

    Re: While Loop Exit with String

    Not true, != and == are very useful for comparing if two objects are the same object, not if they contain the same data.
Results 1 to 3 of 3