I have never encountered anything like this, and I do not know this type of coding! What is it? (I'm new to Java)
DefaultHandler handler = new DefaultHandler() { boolean bfname = false; boolean blname = false; boolean bnname = false; boolean bsalary = false; public void startElement(String uri, String localName,String qName, Attributes attributes) throws SAXException {
After calling the constructor, there is a bracket (!?), And it seems that there is an override of some methods. Then the bracket ends with a semicolon. I never saw the brackets after calling the constructor. This is normal? How does is called? Thanks!
ps: on Eclipse, if I delete the semicolon, it says LocalVariableDeclarationStatement
error.
source share