Operators: ========== Bitwise Operators Special Operators ================= 1) instanceof ============== class ==> members we can check whether the given member belonging to the specific class or not by using "instanceof" operator. return: true/false (Boolean values) Syntax: Boolean variable-name = object instanceof class myClass{ public static void main(String[] s) { // instanceof // true: instance/object/data belonging to the the specified class or not. // false : instance is not belong to the specified class. Integer i1 = 1221; String s1 = "Ashok IT"; String s2 = ""; boolean b1,b2,b3,b4; // true b1 = i1 instanceof Integer; b2 = s1 instanceof String; System.out.println(b1); System.out.println(b2); //false b3 = s2 instanceof String; System.out.println(b3); } } 2) new ======= ==> new is the keyword ==> this can be used as an operator ==> to create an object/instance for any class Syntax: class-name instance-name = new class-name(); ex: import java.util.Scanner; main() { Scanner obj = new Scanner(System.in); } class SpecialOperators{ public static void main(String x[]) { String s = "Ashok IT"; // String is the class boolean r1,r2; SpecialOperators so = new SpecialOperators(); r1 = s instanceof String; r2 = so instanceof SpecialOperators; System.out.println(r1); System.out.println(r2); } } 3) . doperator =============== ==> when we need to access the data (attribute) and/or methods of any class, we can use an object. ==> to access the member of the class: Syntax: object-name.member-name; ============================================= Number System: ============== Integer decimal ==> base-10 ==> 0 to 9 ==> ex: 112, 100 etc. binary ==> base-2 ==> 0 and 1 ==> 0b110011 octal ==> base-8 ==> 0 to 7 ==> 01176 etc. hexa-decimal ==> base-16 ==> Alphanumeric ==> 0 to 9 and a to f ==> 0xaf122 etc. class numberSystem{ public static void main(String[] x) { int a,b,c,d; a = 1212; // decimal b = 0B110011; // binary c = 07612; // octal d = 0Xaf12; // hexadecimal // 0 to 9 // a to f ==> 10 to 15 // println() ==> print any integer value in decimal format System.out.println("a = "+a+" b = "+b+" c = "+c+" d = "+d); } } Base Conversions: =================== Bitwise Operators ================= 10 ==> 1010 bitwise and ==> & bitwise or ==> | bitwise xor ==> ^ bitwise complement ==> ~ left shift ==> << right shift ==> >> Unsigned Right shift operator/Zero filling right shift operator/Unsigned Right shift operator