Do we any lib or method which will tell us the size of string value in bytes , am checking for size not length .
can anyone help me on this
.getBytes().length gives the length of the string not size , for example
String s = "Apple"
s.getBytes().length
returns 5 , i think this length not size