Quiz: Choosing an array of integers !!!

In the recent interviews, I asked the candidates the following question: Is there a difference that I need to consider in the following declarations? Both allocate fixed size array to store integers: [code lang=java] int[] na1 = new int[10]; Integer[] na2 = new Integer[10]; [/code] Not to poke the…

PHP Savers - PropertyBag

The ubiquitous and the universal data structure in PHP is the array. It is an amalgamation of commonly used data structures – list, map etc. In the recent times, PHP has also adopted object orientation and introduced classes. The syntactic difference in the way a property of an array and object…