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
Post a Comment