The Primitive Type: There are eight primitive types of data : byte, short, int, long, char, float, double and boolean. These can be put in four categories as: Integers : This group includes bytes, short, int and long , all of these are used for whole valued signed integer. Floating […]
How to use control statements in Java and their example
There are mainly three categories of control statement in Java as: Selection Statement Iteration Statement Jump statement § Selection Statement: There are two selection statements as: if statement: It is conditional branch statement. It can be used to route program execution through two different paths. Syntax: if(condition) { statement; […]