Get the program here .
   1:/* the output of the program is
   2:Before calling increase method a is 0
   3:After calling increase method a is 0
   4:*/
   5:public class PassByValueTest {
   6:    public static void main(String[] args) {
   7:        int a = 0;
   8:        System.out.println("Before calling increase method a is " + a);
   9:        increase(a);
  10:        System.out.println("After calling increase method a is " + a);
  11:    }
  12:    
  13:    public static void increase(int a) {
  14:        a++;
  15:    }
  16:}