question: public static int size ( String str ) { if ( str == null ) return 0 ; int length = str . length ( ) ; int size = length ; try { size = str . getBytes ( "UTF-8" ) . length ; } catch ( UnsupportedEncodingException e ) { log . log ( Level . SEVERE , str , e ) ; } return size ; }
target:  Size of String in bytes