Is the order guaranteed for the return of keySet() of a LinkedHashMap object?

Posted by kknight on Stack Overflow See other posts from Stack Overflow or by kknight
Published on 2010-05-27T18:35:45Z Indexed on 2010/05/27 18:41 UTC
Read the original article Hit count: 114

Filed under:

I know LinkedHashMap object has a predictable iteration order for elements in it. Then, does the return of keySet() call on a LinkedHashMap object has the same iteration order as the LinkedHashMap object?

Thanks.

© Stack Overflow or respective owner

Related posts about java