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

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -