My goal is to auto-close Socket and OutputStream in try-catch block.
Socket
OutputStream
After searching and learning from Java try-with-resouce, I ended up using <