Semantic errors can be detected
Semantic errors can be detected both at compile time and at run time.
A compiled program can be opened and run by a user. When an application is running, it is called run time. A compile time error is a problem such as a syntax error or missing file.
Semantic error:- Writing invalid program logic that produces incorrect results when the instructions are executed.