Originally posted by chintan ramavat:
no i am getting CASTING ERROR. I am running eclipse with latest JRE.
what do you think about this doubt ?
can we change Wrapper Class object or its just mean for single assignment. iam bit confused here.
First, confirm that you have installed and running a JRE, that is at least 5.0... Window --> Preferences --> Java --> Installed JRE --> get the path and check it.
Second, confirm that you have the compliance level set to at least Java 5.0... Window --> Preference --> Java --> Compiler --> compliant level. Also check the source and class file compatibility.
BTW, with my Java 5.0 JDK, it compiles fine. And the Integer "a" ends up with a value of 30.
Henry
[ February 20, 2007: Message edited by: Henry Wong ]