+ 1
Objects ???
So there are two types of values , primitive types and object . But how many kinds of objects are there . I know that I can make objects of my class . But besides that what kind of objects are there . And yes I am talking about Java . A list of all the object types would be helpful :D
5 Respuestas
+ 7
There are more than 4000 classes in Java 8. Have fun.
https://docs.oracle.com/javase/8/docs/api/
+ 7
An object is an instance of a class. Types of objects would mean types of instances of classes, which is about the same thing as different types of classes.
+ 3
A few libraries are automatically imported, one of them being java.lang. The classes you mentioned are in java.lang.
0
Yey boatloads fun , but I was talking about the types of object not types of classes .
examples being that there are :
Object justAnObject
Class justAnObject
Method justAnObject
Array justAnObject
0
Thanks for clearing that out :D
But how can I use Method objects or Class objects or even Object objects , when i didnt even import / extend them ?