Professional Documents
Culture Documents
Parameter Passing
Parameter Passing
Call By Value:
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
double one=1.0;
System.out.println("before: one = "+one);
halveIt(one);
System.out.println("after: one = "+one);
}
{ // Initialization Block
idNum=nextID++;
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {