What is static code analysis and dynamic code analysis?
Similarly, you may ask, what is static code analysis?
Static code analysis is a method of debugging by examining source code before a program is run. It's done by analyzing a set of code against a set (or multiple sets) of coding rules. Static code analysis and static analysis are often used interchangeably, along with source code analysis.
Accordingly, what is the difference between static analysis and dynamic analysis?
The main difference between static and dynamic analysis is TIME! If the load is applied so slowly, that inertia effects won't play a role, all you need is static analysis. Dynamic analysis handles impacts and other “fast” happening situations, but also vibrations (which happen in time).
Dynamic analysis is the testing and evaluation of a program by executing data in real-time. The objective is to find errors in a program while it is running, rather than by repeatedly examining the code offline.