F
fxtrad
Hello,
I'm a java noob and every book I read on the subject was very explicit
on that you can't do the following:
int i = new Integer(1);
Since primitive types (double, float, int, etc) can not hold nor
reference an Object.
Yet.. This compiles & runs fine!!
Here is my javac version:
$ javac -version
javac 1.5.0_13
I'm a little confused. Anyone?
Thanks -
I'm a java noob and every book I read on the subject was very explicit
on that you can't do the following:
int i = new Integer(1);
Since primitive types (double, float, int, etc) can not hold nor
reference an Object.
Yet.. This compiles & runs fine!!
Here is my javac version:
$ javac -version
javac 1.5.0_13
I'm a little confused. Anyone?
Thanks -