getBytes() method
This method will allow you to provide the byte array of the string or you can say this method will return the bytes sequence.
Method implementation-
Syntax-
Example-
Output-
This method will allow you to provide the byte array of the string or you can say this method will return the bytes sequence.