Category: J2EE

  1. Home
  2. Blog
  3. Category: J2EE

Convert HashMap To ArrayList

Two of the most used data structures used in java are HashMap and ArrayList. Inherited from different hierarchies, HashMap inherited from Map interface which represents key-value pairs form of data. ArrayList is inherited from List interface which arranges the data in sequential manner. Conversion of HashMap to ArrayList is not straight forward as there is no direct methods in HashMap which converts HashMap to ArrayList. Let’s see how to convert HashMap to ArrayList in java with examples.

Continue Reading

Spring – Bean Scopes

When we define a bean in Spring, we declare a scope for that bean. For example, if we want Spring to return same bean instance each time one is required, we should declare bean’s scope attribute to be singleton. Similar way to force Spring to produce a new bean instance each time one is required, we should declare bean’s scope attribute to be prototype. Spring Framework supports following […]

Continue Reading
Show Buttons
Hide Buttons