ynd·18 वर्ष पहले·discussI bet they were looking for extensibility.I wonder if they ever thought of providing two interfaces.1. The first is the common case. Document doc = new DocumentBuilder().parse("test.xml"); 2. The second is more cumbersome but provides options. Document doc = DocumentBuilderFactory.newInstance(opts).newDocumentBuilder(opts2).parse("test.xml");
The rest is funnier. Give it a try.