Due to Java’s Reflection API we have been able to inspect and alter program execution at runtime. In particular, we…