FileDocCategorySizeDatePackage
FinalArgs.javaAPI DocExample445Sun Dec 27 15:20:34 GMT 1998None

FinalArgs

public class FinalArgs extends Object
Experiment with "final" args to functions (new in 1.1)

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

		new FinalArgs().run();
	
voidmyFunc(java.util.Date d)

		// d = null;	// this will not compile
		d.setYear(99);	// this will compile, and changes the object
	
voidrun()

		System.out.println("Hummm de dummm...");
		myFunc(new Date());
		System.out.println("Once upon a time...");