Hi all.
As normal how we declare a
string array when we dont know the size i.e how much data should be inserted then i give as String[] str = null. After that i can perform all the operations. When i try to do the same with int that is int[] arr = null. I dont get compilation error, when i try to access its elements i am getting the java.nullpointer exception.
Any help would be greatly appreciated.
Thanks
alexander