String by Byte Array em Java

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