1. Call by value EXAMPLE PROGRAM!!
PLS
Answers
Answered by
4
Program:- {JAVA}
public class CallByValue
{int x;
int get(int a)
{ a=a*a;
return a; }
void main()
{
x=10;
System.out.println("Original value:"+x);
System.out.println("Value after method call: "+get(x));
System.out.println(“After method call variable value:"+x);
}
Similar questions