I converted a String into a ByteArray. Then I tried to convert it back to string using toString() method. The output is not as expected. Please highlight the problem area:
String str = "Java World for 1.4";
byte bArray[] = new byte[str.length()];
bArray = str.getBytes();
String bString = bArray.toString();
System.out.println("Byte array converted to string: " + bString);
Output:
Byte array converted to string: [B@3e25a5