Member method consting in Java?
<p>In C++, a member method can be const if it does not modify the class. For example:</p>

<pre><code>class Foo {
public:
  float getValue() const;
};
</code></pre>

<p>Is there something similar I must do in Java classes? How exactly does consting work in Java? (Aside from adding the final keyword before a member variable declaration and initializing it)</p>

<p>Thanks</p>
