The following string st
contains just 18 characters but when I print its length it shows 36 its twice.
String st = "";
System.out.println(st.length());
Note: The string contains symbols which I am going to use in my chat application, the length maybe vary due to 16bit and 8bit characters but I am blurry about it.