This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
see this ..Can you tell me why it causes Exception when object reference can hold any instance of its subclass. Object obj = new String("test"); System.out.print(obj); obj = new Integer(3); System.out.print(obj); prints test3 But in the case of array.. Object obj = new String; obj = new Integer(3);
causes an Array Store Exception .. Can you explain it ??