+ 3
are all data types classes and their variables objects in Java?
3 Respostas
+ 6
Many, but not all. Things like int, boolean, double etc are all just basic variables, with no methods associated with them. There are, however, versions of some (like Integer, for instance) that make a class out of them for use in containers, etc.
Java is largely about classes and objects, but they can't really get away with it all being that way.
+ 6
My pleasure. Enjoy your primitives in Java, be a rebel!
+ 2
thanks mate☺