Java Class isArray() Method

The isArray() method of java Class class determines if this Class object represents an array class.

Syntax

Parameter

NA

Returns

true if this object represents an array class.

Throws

NA

Example 1

Test it Now

Output:

Is arr is an array
True

Example 2

Test it Now

Output:

java.lang.String is not an array

Next TopicJava Class




Latest Courses