I am using Socket communication in one of my Java applications.As I know if the program meets any abnormal termination the listening ports does not get closed and the progra
The operating system should handle things such as that automatically, when the JVM process has ended. There might be a short delay before the port is closed, though.