Home » Java Array getByte() Method

Java Array getByte() Method

by Online Tutorials Library

Java Array getByte() Method

The getByte() method of Array class returns the value of the indexed component in the specified array object, as a byte.

Syntax

Parameter

array – the array

index – the index

Returns

the value of the indexed component in the specified array

Throws

NullPointerException

IllegalArgumentException

ArrayIndexOutOfBoundsException –

Example 1

Test it Now

Output:

2  
Next TopicJava Array Class

;i++)>

You may also like