java - Map is better or enum is better on performance grounds? -


i new using enum.i using maps since long time. not sure , not clear enum performance , capabilities. performance if use enum? more kind of objectoriented using enum?

wanted clear idea both of on grounds of internal structure.

maps , enums different data structures. maps associating value key. enums make typesafe constants. comparing 2 impossible!


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -