FileDocCategorySizeDatePackage
ChainingFinals.javaAPI DocExample1259Sun Dec 14 22:48:26 GMT 2003oreilly.hcj.finalstory

ChainingFinals

public class ChainingFinals extends Object
Demonstrates a danger of chaining final initialization to watch out for.
author
Robert (Kraythe) Simmons jr.

Fields Summary
public final String
name
A Final member
public final int
nameLength
Another final member
Constructors Summary
public ChainingFinals(String name)
Creates a new MixingInitialization object.

param
name __UNDOCUMENTED__

  // <== works because name has to be initalized.

	          	 

	// public final int nameLength = name.length;  // <== Wont compile;

	         	 
	    
		this.name = name;
	
Methods Summary