17. Arithmetic Operators (Contd…) += Addition and assignment -= Subtraction and assignment *= Multiplication and assignment /= Division and assignment %= Modulus and assignment
18. Relational Operators == Equal to != Not equal to < Less than > Greater than <= Less than or equal to >= Greater than or equal to
19.
20.
21.
22.
23.
24. Sample usage of Method class Temp { static int x = 10; // variable public static void show( ) { // method System.out.println(x); } public static void main(String args[ ]) { Temp t = new Temp( ); // object 1 t.show( ); // method call Temp t1 = new Temp( ); // object 2 t1.x = 20; t1.show(); }}