+ 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

9th Jun 2018, 9:26 AM
Lightning
Lightning - avatar
5 odpowiedzi
+ 7
There are more than 4000 classes in Java 8. Have fun. https://docs.oracle.com/javase/8/docs/api/
9th Jun 2018, 9:45 AM
Hatsy Rei
Hatsy Rei - avatar
+ 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.
9th Jun 2018, 9:56 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
A few libraries are automatically imported, one of them being java.lang. The classes you mentioned are in java.lang.
9th Jun 2018, 10:04 AM
Hatsy Rei
Hatsy Rei - avatar
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
9th Jun 2018, 9:52 AM
Lightning
Lightning - avatar
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 ?
9th Jun 2018, 9:57 AM
Lightning
Lightning - avatar