Array.getByte(Object array, int index) has the following syntax.
public static byte getByte(Object array, int index) throws IllegalArgumentException , ArrayIndexOutOfBoundsException
In the following code shows how to use Array.getByte(Object array, int index) method.
import java.lang.reflect.Array; /* w w w . j av a2 s . c o m*/ public class Main { public static void main (String args[]) { byte[] array = new byte[]{1,2,3}; byte value = Array.getByte(array, 1); System.out.println(value); } }
The code above generates the following result.