type cannot be deferenced
e.g.,
int i = 10;
String con = i.toString();
We cannot do this because "i" is not an object, it's a premitive datatype. And toString() method is in defined in java.lang.Object.
If we want to use it any how then following code can be used -
int i = 10;
String con = i + "";
0 Comments:
Post a Comment
<< Home