In java we use this statement many times in code like if(strResult != null) which is not a good way of programming so I want to discuss , What can be the best way to avoid this not null.
Please share your thoughts Thanks!