This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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.