This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
What chandanna, said is correct. Since in the question class zippy, all the variables are instance variables,which do need to be intialized.
But i think, the question is regarding Casting. Array X is of type String and object d is type of Object. Since all the objects in java inherit from class "Object", you can use Object to refer to any other type of object. Compiler will not complain. At run-time, it will throw a ClassCast Exception.
Hope this helps
Joined: Jan 06, 2007
Thank you guys , Sorry i didn't pay attention that it's member of CLASS. Yes i agree with you guys.