title: Invalid character constant in java
body: <pre><code>return (int) (feetPart) + '\' ' + inchesPart + '\''+'\'';
  </code></pre>
  
  <p>Why is the above invalid character constant, this works perfectly in JavaScript. I want to display height in feet and inches and was using this client side, but when I use the same in server side it shows <code>Invalid character constant</code>. </p>