code: protected synchronized void create() throws SocketException {
          ResourceManager.beforeUdpCreate();
          fd = new FileDescriptor();
          try {
              datagramSocketCreate();
          } catch (SocketException ioe) {
              ResourceManager.afterUdpClose();
              fd = null;
              throw ioe;
          }
  
          if (fd != null && fd.valid()) {
              guard.open("close");
          }
      }
docs: Creates a datagram socket