Professional Documents
Culture Documents
JAAVA
JAAVA
8.Types of data:
Integer: store numbers without decimal point
Double : store decimal point numbers
Char: store single character enclosed in single quotes(‘ ‘)
String :store group or sequence of characters , enclosed in double quotes(“ “)
Boolean: true or false.
14.java operator:
1.ARTHMETIC OPERATOR(+,-,*,/,%)
2.RELATIONAL OPERATOR(<,>,<=,>=,==,!=):which will check relational operator
I/p=int, double, charo/p= Boolean.
3.ASSIGNMENT OPERAT0R(+=,-=,*=,/=,%=)
4.LOGICAL OPERATOR(&&,||,!): which can be used for condition, its works on logical gates
I/p=true, false, relationalo/p= Boolean
(&&) (||)
OP1 OP2 RE
S
T F T
OP1 OP2 RE T T T
S
F F F
T F F
F T T
T T T
F F F
15.FLOW CONTROL STATEMENT which are used to flow of execution of the program.
DECISION STATEMENT:
LOOP STATEMENT