Good day,
Is it a good practice to reinitialize an object with null if it is no longer be used or an expected new initialization comes in?
for example
Later, that snippet will be utilized again...
Any advise?
Is it a good practice to reinitialize an object with null if it is no longer be used or an expected new initialization comes in?
for example
Code:
Objective obj = new Objective();
while( something_will_false_later ){
//operations that uses Objectives
}
obj=null;
Any advise?
Comment