What happens if you don't close a socket after communication?

Last Updated :
Discuss
Comments

What happens if you don't close a socket after communication?

It automatically closes itself

It keeps consuming system resources

It throws an exception immediately

It terminates the JVM


Share your thoughts in the comments