java newinstance alternative

YourClass.getDeclaredConstructor().newInstance()