Convert byte array to String in Java



Making a byte array to String conversion in Java is very simple since one of the String class constructors takes an array of bytes as argument.
We simply create the object with our array as argument to convert the byte array to a String, and then print out the value.

When executed the output of the code above will be:

Check out this link to convert String to byte array.







Search for more Java info on this site here:
Custom Search


Any thoughts or questions?