public class Foo { void foo() { Zoo z = xcreatex } } class Zoo { } class ZooFactory { static Zoo xcreateZoo() {} static Zoo xcreateZoo(int a) {} static Object xcreateElephant() {} }