title: Length limit for a variable name in Java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/695951/max-name-length-of-variable-or-method-in-java">Max name length of variable or method in Java</a>  </p>
  </blockquote>
  
  
  
  <p>I was reading the java docs and it says “A variable's name can be any legal identifier — an unlimited-length sequence of Unicode letters and digits … “ in c++ the variable name length is around 255 characters depending on the compiler, so how is this handled in java does the compiler truncate the variable name after x number of characters, and if this is true what would be x ?</p>