There is a problem with your understanding of memory recycling. Object recycling first no longer refers to a certain memory address, and the GC reclaims the memory instead of recycling the memory first, causing the variable to be null
Static members will not be recycled. The author does not have to worry about the values of static members changing inexplicably. If there is no other assignment to APP_NAME in the code, its value will always be "segmentFault".
There is a problem with your understanding of memory recycling. Object recycling first no longer refers to a certain memory address, and the GC reclaims the memory instead of recycling the memory first, causing the variable to be null
Static members will not be recycled. The author does not have to worry about the values of static members changing inexplicably. If there is no other assignment to APP_NAME in the code, its value will always be "segmentFault".