Why do we need a default no argument constructor in Java?
问题 Why do we need a default no argument constructor in many Java related APIs? Like as a general rule all java bean classes or entity classes (JPA etc) or JAX-WS implementation classes require a explicit no argument constructor. If by default Java provides a no argument constructor then why most of these standards require a explicit constructor? 回答1: Java only provides a default no-argument constructor if no other constructors are defined . Thus, if you have other constructors you must