JAVA basic "reflection"
preface Reflection mechanism What is reflection? Reflection is to know all the properties and methods of any class in th...
IoC and DI of Spring
Spring Spring is a lightweight open source framework for layered Java SE/EE application full stack, with IOC (flip contr...
Effective Java Chapter 2 creating and destroying objects
1. Replace the constructor with the static factory method //Example public static Boolean valueOf(boolean b){ return b ?...
Parsing xml files using SAX
SAX parsing using JAXP (XMLReaderFactory, XMLReader, SAXParserFactory, and SAXParser) 1. We do this through XMLReaderFactory, XMLReader, as follows 1....