Operators in Java Master Skill Java provides many type of operator , which can be used according to the need . they are classified based on the functionality. " In Java Operator Are a symbol that are used for performing specific operations in java , operators make task like Addition, multiplication etc " Type of operators There are multiple operator in Java language Arithmetic operator Assignment operator Relational operator Logical Operator Ternary Operator Bitwise operator Shift operator Instance operator Java Operators 1. Arithmetic operator They are used to perform simple arithmetic operations on primitive data types. * : Multiplication / : Division % : Modulo + : Addition – : Subtraction For example :- // Arithmetic operators int a = 10 ; int b = 3 ; System.out.println( "a + b = " + (a + b)); ...
Comments
Post a Comment