Python | Java |
All data values, including functions, are objects. Thus, all data types are reference types. | There are two broad categories of data types: primitive types and reference types.
The primitive types include the numeric types (double, int, char) and boolean. The values of primitive types are immutable and are not instances of classes. Reference types are classes. Thus, any object or instance of a class is of a reference type. These include strings, arrays, lists, maps, and so forth. |