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.
Asked
Active
Viewed 5,607 times
3
-
3byte is a primitive type no class. – Jens Apr 26 '17 at 06:22
-
1`System.out.println(byte[].class);` – TNT Apr 26 '17 at 06:24
1 Answers
3
The answer is byte[].class.
Example:
byte[] receivedMessage = consumer.receiveBody(byte[].class, 15000); // in ms or 15 seconds
Rudy Vissers
- 4,920
- 3
- 31
- 33