Google+ October 2015 ~ Java Geek Zone

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...

Friday, 23 October 2015

On 08:27 by Unknown in , , ,    No comments
Below are few Eclipse shortcuts which can make your life easier/faster to work with it. 1. Manage Files and Projects Ctrl+N Create new project using the Wizard Ctrl+Alt+N Create new project, file, class, etc. Alt+f, then . Open project, file, etc. Ctrl+Shift+R Open Resource (file, folder or project) Alt+Enter Show and access...
On 01:42 by Unknown in , , ,    No comments
Often we write the code and import the classes in the import section of the class file. Code never stays unchanged for lifetime as change is the only constant thing in programming. Many times, after code refactoring or bug fixed, Eclipse IDE will show a yellow underline for all unused imports...