value

  1. M

    Resolved Value types and reference types

    Hi everyone, First question here... If I'm correct, String is a reference datatype, right? See my code below: String nameOne = "Matthew"; String nameTwo = nameOne; nameOne = "Andrew"; In the end, I should expect both nameOne and nameTwo to be Andrew...
Back
Top Bottom