How do java programmers cope with java missing c++ const?




I've been working with java for a while now, but I miss the ability to
pass around objects that can't be modified, as is possible with the c++
const keyword. Is it just me or do others find this a limitation of
java? I've read the way to do it in java is to pass around immutable
objects however that seems a lot less flexible than having the ability
to pass a const reference to a mutable object as can be done in c++.

.



Relevant Pages

  • Required Java Engineer for Project with our direct Client
    ... Job Title:Java Engineer ... Strong knowledge of software development methodologies and best ... detailed technical design, implementation, and production support. ... Ability to use seasoned judgment to suggest approaches that optimize ...
    (microsoft.public.biztalk.general)
  • Re: OO syntax
    ... In Python and Java it is: ... objref classref --> message ... in compile mode, compiles the token as an string, then ... Ability to implement 'default methods' - methods which get invoked ...
    (comp.lang.forth)
  • Re: initialize array elements during declaration
    ... > But I can't stand exams or interview tests which test the persons ability to ... > this ability is a waste of their time and mine. ... > I've created the Java tests for my current employer and there isn't a single ... Not all compilers in all languages have that, and regardless, it ...
    (comp.lang.java.programmer)
  • Re: Very stupid and trivial question
    ... >> Another very useful tool in programming is the ability to locate ... I downloaded java 1.4.2 from sun ... Sun Certified Developer for the Java 2 Platform ...
    (comp.lang.java.programmer)
  • Re: Help required for java maths program
    ... > Andrew Thompson shut your stinking gob u arrogant nerd, ... > at java I just wanted some help which u thought that you were to great to ... it's the ability to *learn* that is important. ...
    (comp.lang.java.help)