Is there any advantage calling newInstance over new()
Test.class.newInstance(); vs Test test = new Test() Javadoc for newInstance says
Creates a new instance of the class represented by this Class object. The class is instantiated as if by a new expression with an empty argument list. The class is initialized if it has not already been initialized.
You can use clazz.newInstance() if the class has a no-argument accessible constructor. Otherwise you have to get the java.lang.reflect.Constructor and then invoke constructor.newInstance(Object newargs).