warning: [deprecation] newInstance() in Class has been deprecated Class.forName(dbClass).newInstance(); code example
Example: java newinstance alternative
YourClass.getDeclaredConstructor().newInstance()
YourClass.getDeclaredConstructor().newInstance()