programming languages - Low level and High level data types -
Can anyone say that in the context of programming, what is the low level and high level data types in Java background Coming up I thought that lower levels would be primitive types like integer, bullion, string etc. and higher level mixed object types. It is not absolutely certain that this is a general sense, and I could not find a clear definition online.
Your understanding is generally correct, but it also depends on your specific code stack. For example, you list the string as a primitive type; But in C, for example, a string is usually an array of characters, whereas a full-featured string (like one in Java) is a very high level object. At least, more than some struct
, you can easily define a complex number, or 2d-point like typedef struct {float x, y} point
.
Of course it can be explained because Java has a higher level of language than C, so its priorities are higher than C. In the end, it means that the 'High / Lower' level is defined as relative values, some things have higher levels than others.
Finally, everything in the software should be executed by a CPU, so it takes into account what concepts are implemented in the hardware and which are not.
Integers, pointers, bit fields, floating points, etc. are common to most CPUs. Some of them handle arrays and even simple (c-style) strings.
Communities and typed values are usually 'contained' in the code, but there is no CPU facility, so they are at a slightly higher level, but generally it is so low that they can handle There is no clear code, only the structure of the program considers the data desired.
Comments
Post a Comment