title: Final object can be modified but reference variable cannot be changed
body: <p>A reference variable marked final cant reassigned to different object.The data with in object can be modified but the reference variable cannot be changed.</p>
  
  <p>Based on my Understanding I have a created a code below where I am trying to reassign a new UserId of  155.As the Definition goes I am only trying to change data within the object. But the reference is same. </p>
  
  <pre><code>public class FinalClass 
  {   
      public static void main(String[] args)
      {
          ChildClass objChildClass = new ChildClass(); 
          objChildClass.UserId = 155;
      }
  }
  
  class ChildClass
  {
      public static final int  UserId = 145;  
  }
  </code></pre>
  
  <p>I believe I misunderstood the above concept.</p>
  
  <p>Kindly explain the same with example.</p>
  
  <p>Thanks for Reply.</p>