The output [B@140fee
is generated by the object's toString()
method (which is implicitly called when printing an arbitrary object with the println()
method. The [
means that the object is an array type object. B
means that the element type of the array is Byte
. The hexadecimal digits following the @
sign are the hexadecimal representation of the object's hash code (whatever number is returned by the object's hashCode()
method.
So in order to see the bytes you received, you would need to convert the byte array to a readable string representation (e.g. concatenated hexadecimal representation of each byte value).