Is there any way to determine a String variable's weight? in
KB or MB? or any sort of logic that can be implements to determine
this? Actually I have a String variable which is update by various
kind of source data, now I want to stop that updation when the
variable's size limit will be exceed of a certain MB. Is ByteArray
or anything can help on this!