Relational Operators Relational operators ‘ >, >=, <, <= ‘ We have to apply these relational operators only for primitive data types except boolean. 10 > 20 // false ‘ a ‘ > 95 // true 10 < 10.5 // true true < false // ( compile time error ) We can’t apply relational operators […]
Category: SCJP- Operators And Assignments
Arithmetic Operations
Arithmetic Operations ( +, -, *, /, % ) If we are performing any arithmetic operation between two variables a and b . The result is always type max ( type of a, type of b, int) byte + byte = int byte + short = int int + byte = int short + long […]