what do we mean exactly when we say “ints are immutable”

Discussion in 'Java Forums' started by trid, Apr 10, 2013.

  1. trid

    trid New Member

    I'm confused on the concept of "being immutable". Our professor is saying "ints are immutable! Strings are immutable" everyday, what does he mean by that exactly?A more general question, how do we know if a data structure is immutable or not?Thanks
     

Share This Page