Data Types PPT
Data Types PPT
Department of CSE
Thus, we can say that, a data type defines two things:
Type of data
Memory blocks to be reserved for the data
There are mainly two data types in Java
Primitive data types
Non-primitive data types
Department of CSE
Department of CSE
Java Primitive Data Types:
Department of CSE
Java Comments:
Comments are not a part of the compiled program. They
can be used to explain Java code, and to make it more
readable. It can also be used to prevent execution when
testing alternative code.
Single-line Comments: It starts with two forward slashes
(//).
Any text between // and the end of the line is ignored by
Java (will not be executed).