Encoding of string in java
<p>I am actually confused regarding encoding of string in a language. I had some of these questions .... Please help me if you know the answer to them....</p>

<p>1) What is the native encoding of java strings in memory ie when I write <code>String a = "Hello"</code> in which format will it be stored. Since java is machine independent so I don't think it will be the encoding done by the system ??</p>

<p>2) I read this on the net that "UTF-16" is the default encoding but I got confused because say when I write that <code>int a = 'c'</code> the default answer gives me ASCII  so are ASCII and UTF-16 same ??</p>

<p>3) Also I had this doubt that on what factors the storage of a string in the memory depend os , language ??</p>
