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? Java only provides a default no-argument constructor if no other constructors are defined . Thus, if you have other constructors you must explicitly define a no-arg constructor yourself. These frameworks use the reflection API and look at method names to