1)Airthmatic Operations:
//a+b add,
//a-b substract,
//a*b multiply,
//a/b divided by,
//a%b modulus ops returns reminder
2) Relational Operations:
// > greater than a > b
// < less than a < b
// >= greater than or equal to a > = b
// <= less than or equal to a <= b
// != not equal to a != b
3)Logical Operations:
/*opers &&(And),||(OR),!(not)*/
4)Assignment Operations:
/*Shorthand assignment operators form
v op = exp(or veriable)
where v = variable
op = operator
exp = expression
Ex.
1)i = i+1 => i+=1 (Add)
2)i = i-1 => i-=1 (Substract)
3)i = i*1 => i*=1 (Multiply)
4)i = i/1 => i/=1 (Divisible)
5)i = i%1 => i%=1 (Remainder)
6)a = a+b =>a+=b (veriable addition)
i = i+12 => i+=12; i*=14,i%=15,i/=12,i-=2;
a+=b
*/
5) IncDecOperations:-
//Pre Increment = ++a/--a (current step operator)
//Post Increment = a++/a++ (next step operator)
6)ConditionalOp:-
//conditionalOp a>b?a:b => if true = (o/p) a & false = (o/p) b
7)Math java library:-
//java directory:- java.lang package
//Math.function_name();
/*List of functions:
where
n = number
1) sin(n)/cos(n)/tan(n): Returns sin/cos/tan values of n
2) asin(n)/acos(n)/atan(n): Returns angle of sin/cos/tan values of n
3) i)pow(a,b): Returns a^b (a raised to b)
ii)exp(x): Returns e^x
4) i)log(n): Returns log value of n
ii)sqrt(n): Returns square root of n (output :- decimal no)
5) int(n)/round(n): Returns integer value of (decimal) no.
6) i)max(a,b): Returns maximum of a&b
ii)min(a,b): Returns minimum of a&b
7) abs(n): Returns absolute value of n
8) i)ceil(n): Returns greater/equal to integer n (closed integer)
ii)floor(n): Returns less than/equal to integer (nearest integer)n*/
0 Comments