1. Overview:
Encodes the current String into a sequence of bytes using the platform's default charset, storing the result into a new byte array.This method has 4 overloaded methods.
public byte[] getBytes() public void getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) --> This is @Deprecated public byte[] getBytes(String charsetName) throws UnsupportedEncodingException public byte[] getBytes(Charset charset)