String by octet Array en Java

 String str = "Example String";
 byte[] b = str.getBytes();
Handsome Heron