Hey friends, welcome to simplyjaavapro. Today, I shall discuss about data types in java.
Well, you may have heard that Java is a highly typed language. The statement basically means that there exists a set of semantics for data types in Java programming language. Java provides data types under broad categories:
1. Pre -defined data types: These come in naturally with Java. They include:
i. For integral Numbers : int, short, long
ii. For floating point Numbers : float
iii.For characters : char
2. User - defined data type: These are defined by the user.
Note: A user defined data-type is basically an object reference to some object. One such data type comes pre-defined, called String.
Note: String is not rigidly a pre-defined data-type, although it may seem to be. It is actually an Object reference similar to any other user defined data type.
Well, you may have heard that Java is a highly typed language. The statement basically means that there exists a set of semantics for data types in Java programming language. Java provides data types under broad categories:
1. Pre -defined data types: These come in naturally with Java. They include:
i. For integral Numbers : int, short, long
ii. For floating point Numbers : float
iii.For characters : char
2. User - defined data type: These are defined by the user.
Note: A user defined data-type is basically an object reference to some object. One such data type comes pre-defined, called String.
Note: String is not rigidly a pre-defined data-type, although it may seem to be. It is actually an Object reference similar to any other user defined data type.
No comments:
Post a Comment