An Emacs frame may or may not have a specified title. The frame title, if specified, appears in window decorations and icons as the name of the frame. If an Emacs frame has no specified title, the default title is the name of the executable program (if there is only one frame) or the selected window's buffer name (if there is more than one frame).
You can specify a title for the initial Emacs frame with a command line option:
Specify title as the title for the initial Emacs frame.
The -name option (Section B.13) also specifies the title for the initial Emacs frame.