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 8,818 times
4
-
3byte is a primitive type no class. – Jens Apr 26 '17 at 06:22
-
2`System.out.println(byte[].class);` – TNT Apr 26 '17 at 06:24
-
the base class of String is Object – Jimmy T. Sep 02 '22 at 08:51
1 Answers
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