4

I would like to know what is the base class for byte array (byte[]) in java. For example for String it is java.lang.String.

street hawk
  • 565
  • 7
  • 12

1 Answers1

5

The answer is byte[].class.

Example:

byte[] receivedMessage = consumer.receiveBody(byte[].class, 15000); // in ms or 15 seconds
Rudy Vissers
  • 5,267
  • 4
  • 35
  • 37