Search:

Type: Posts; User: Wolfone

Search: Search took 0.10 seconds.

  1. Replies
    15
    Views
    1,423

    Re: primitive vs reference data-type

    very interesting link! thanks!

    you three helped a lot!

    i think that solves this thread :)
  2. Replies
    15
    Views
    1,423

    Re: primitive vs reference data-type

    so strings which hold the same value at compile-time get the same address but strings subsequently added at runtime would get different addresses even if they hold the same value?


    EDIT: reply to...
  3. Replies
    15
    Views
    1,423

    Re: primitive vs reference data-type

    that confuses me...i really thought that would give a false...
  4. Replies
    15
    Views
    1,423

    Re: primitive vs reference data-type

    ok..i runned your code jps.
    am i right when i say that this works, because the object you created is mutable via the method you implemented which allows to change the value of the object while the...
  5. Replies
    15
    Views
    1,423

    Re: primitive vs reference data-type

    I c...ok...ill try explain my understanding of this:

    i create strings a,b;
    i set a = "before"; b = a; now b is pointing to the actually same place somewhere in my memory if i got jps right?...
  6. Replies
    15
    Views
    1,423

    primitive vs reference data-type

    Hello everyone!

    This is probably a really simple question but i got a little it confused.
    I wanted to write a little example which explains the difference between a non reference and a reference...
Results 1 to 6 of 6