I am student learning about java.While solving problems I faced the issue.I want to know what is difference between these two statements.
-The second statement is declaration of new object.
-I don't know about the first statement and difference between two statements.
Also plz let me know when to use both the statements.
If Person is class in java,then what is difference between
Person p;
Person p = new Person();