We usually get the length of a string by length method. But it is not the correct result of the string which composites of chinese charaters because the chinese charaters will take 2 space for each. On the other side, one more method bytesize of String, will return the3, the bytes length of the string.