I am new to Android and having an issue in initializing Fragment I am looking at two lines of code and cannot figure out the actual difference between these two approaches and which one to opt. Kindly suggest
1) SignUpFragment fragment = new SignUpFragment();
2) SignUpFragment fragment = SignUpFragment.newInstance();