Why .com file also executes .exe file on emu 8086?

Posted by userlivedhere@reddit | learnprogramming | View on Reddit | 5 comments

An emulator can execute a .com file because it includes logic that handles the legacy MS-DOS executable format, often by examining the file's structure rather than relying solely on the file extension. = says google ai I am not able to comprehend it what does this mean