how the java memory works whenever a new class is instantiated, and when it gets garbage collected, etc.
And also there is difference in memory usage for the collection classes. For eg:Vector takes more memory than hash map like that.
Thanks in advance