Google+ Java Geek Zone: Collection
Showing posts with label Collection. Show all posts
Showing posts with label Collection. Show all posts

Wednesday, 28 October 2015

On 07:01 by Unknown in , , , ,    2 comments
We all know in java ArrayList does not have limit unlike Array where we can only add fixed number of elements. ArrayList allows dynamically adding and removing the elements in this list. So question comes HOW? By default initial capacity of an array is defined with constant DEFAULT_CAPACITY private...

Monday, 26 October 2015

On 06:03 by Unknown in , , ,    No comments
In most of the interviews of Java, We are often checked with the in depth knowledge of Collection APIs and its capabilities. One of the very famous interview questions is: Why Set does not allow duplicate value? Now, don’t tell me you were also asked the same We all know Set theory in mathematics that all elements in Set are always unique. The same has been applied to the Set API. Let’s try to...