Professional Documents
Culture Documents
Java
Java
• Features of Java
• Java Data Type
• Data type are divide two type
-Primitive type
-Non-Primitive type
• Java Operators
-Arithmetic
-Assignments
-Comparison
-Logical
-Bitwise
• Java String
• Java ..If…Else
Features of Java
• A list of the most important features of the
Java language is given below.
1. Simple
2. Object-Oriented
3. Portable
4. Platform independent
5. Secured
6. Robust
7. Architecture neutral
8. Interpreted
9. High Performance
10. Multithreaded
11. Distributed
12. Dynamic
Java Data Types
• Data types are divided into two groups:
-Primitive data types
-Non-primitive data types
Primitive Data Types
• A primitive data type specifies the size
and type of variable values, and it has
no additional methods.
• There are eight primitive data types
in Java:
•Data Type Size Description
float 4 bytes Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits
double 8 bytes Stores fractional numbers. Sufficient for storing 15 decimal digits
+= x += 3 x=x+3 Try it »
-= x -= 3 x=x-3 Try it »
*= x *= 3 x=x*3 Try it »
/= x /= 3 x=x/3 Try it »
%= x %= 3 x=x%3 Try it »
|= x |= 3 x=x|3 Try it »
^= x ^= 3 x=x^3 Try it »