Java Spliterator characteristics() MethodThe characteristics() is a method of Java Interface Spliterator which is used to get a set of characteristics of this Spliterator and its elements. SyntaxFollowing is the declaration of characteristics() method- ParameterThis method does not accept any parameter. ReturnThe characteristics() method returns a representation of characteristics. ExceptionsNA Compatibility VersionJava 1.8 and above Example 1Test it NowOutput: Set of Characteristics: 16464 Example 2Test it NowOutput: Characteristics Set: 16464 Vehicle List- Avenger RoyalInField Apache
Next TopicJava Spliterator class
|