Javatpoint Logo
Javatpoint Logo

Java Spliterator characteristics() Method

The characteristics() is a method of Java Interface Spliterator which is used to get a set of characteristics of this Spliterator and its elements.

Syntax

Following is the declaration of characteristics() method-

Parameter

This method does not accept any parameter.

Return

The characteristics() method returns a representation of characteristics.

Exceptions

NA

Compatibility Version

Java 1.8 and above

Example 1

Test it Now

Output:

Set of Characteristics: 16464

Example 2

Test it Now

Output:

Characteristics Set: 16464
Vehicle List-
Avenger
RoyalInField
Apache



Help Others, Please Share

facebook twitter pinterest