I was working with gnu version of rmic. I noticed that when I compiled with it, it gave me java.lang.exception. I compiled it with Sun’s JDK and it did not throw an error.
Now, why would I get an exception while compiling? Exceptions by definition occur only during runtime. Vikram believes that there might be a problem with gnu’s implementation of Java specification.
int is an primitive data type; an object. However, any object in java has .tostring() method as all objects need to implement toString method. An integer object is not an object in the strictest sense then as toString() does not exist. To get the string object, Interger.toString(int) is required.
So, is Java object oriented?