Java Collections emptyEnumeration() MethodThe emptyEnumeration() method of Java Collections class is used to get an enumeration that has no elements. SyntaxFollowing is the declaration of emptyEnumeration() method: ParameterThis method does not accept any parameter. ReturnsThe emptyEnumeration() method returns an empty enumeration. ExceptionsNA Compatibility VersionJava 1.7 and above Example 1Test it NowOutput: Output: false Example 2Test it NowOutput: Enumeration list is empty. Example 3Test it NowOutput: It is empty Enumeration list. Next TopicJava Collections Class |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India