Input
Output
public class Callbyvalue { int amt=60; void interest(int amt){ amt=amt+100; } public static void main(String args[]) { Callbyvalue cv=new Callbyvalue(); System.out.println("Before Interest Amount "+cv.amt); cv.interest(250);// call by value System.out.println("After Interest Amount "+cv.amt); } }