Its the second week of my training and believe me, the first three days, really had developed an urge and curiosity in me to learn Java. This past weekend, i had searched the Internet extensively to know more about Java.
Our week started with detailed study of Data Types valid in Java and within first three days of this week, we covered Variables, Operators used in java too, along with the previously mentioned topic.
Java defines eight primitive types of data: byte, short, int, long, char, float, double, and boolean.These can be put in four groups:-
• Integers This group includes byte, short, int, and long, which are for whole-valued signed numbers.
• Floating-point numbers This group includes float and double, which represent numbers with fractional precision.
• Characters This group includes char, which represents symbols in a character set, like letters and numbers.
• Boolean This group includes boolean, which is a special type for representing true/false values.
The rest of the things we already know as we have studied in C++ , so i think that would be enough about data types. About Variables, they are defined by the combination of an identifier, a type, and an optional initializer.
Example: int a, b, c; // declares three ints, a, b, and c.
and, char x = 'x'; // the variable x has the value 'x'.
Similarly, we also know well about operators. Those used in java are Arithmetic, Logical, Assignment, Relational, Bit-wise, Increment/Decrement, Shift, Ternary, Compound Assignment and Typecasting.
Our week started with detailed study of Data Types valid in Java and within first three days of this week, we covered Variables, Operators used in java too, along with the previously mentioned topic.
Java defines eight primitive types of data: byte, short, int, long, char, float, double, and boolean.These can be put in four groups:-
• Integers This group includes byte, short, int, and long, which are for whole-valued signed numbers.
• Floating-point numbers This group includes float and double, which represent numbers with fractional precision.
• Characters This group includes char, which represents symbols in a character set, like letters and numbers.
• Boolean This group includes boolean, which is a special type for representing true/false values.
The rest of the things we already know as we have studied in C++ , so i think that would be enough about data types. About Variables, they are defined by the combination of an identifier, a type, and an optional initializer.
Example: int a, b, c; // declares three ints, a, b, and c.
and, char x = 'x'; // the variable x has the value 'x'.
Similarly, we also know well about operators. Those used in java are Arithmetic, Logical, Assignment, Relational, Bit-wise, Increment/Decrement, Shift, Ternary, Compound Assignment and Typecasting.
No comments:
Post a Comment