Equality Operator (= =), (!) We can apply equality operators for all primitive data types including boolean also. 10 = = 20 ; // true ‘ a ‘ = = 97 ; // true 10 = = 10.0 ; // true true = = true ; // true We can apply equality operators even for […]
Tag: scjp java operators
Relational Operators
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 […]