How to Create Object With New Keyword and Without in Java