Advanced
Java
Q83 / 100
What is bytecode instrumentation and when is it used?
Correct! Well done.
Incorrect.
The correct answer is B) Modifying .class bytecode at load time or compile time to add cross-cutting behavior like logging or profiling
B
Correct Answer
Modifying .class bytecode at load time or compile time to add cross-cutting behavior like logging or profiling
Explanation
Frameworks like AspectJ, Mockito, and many APM agents use bytecode instrumentation (via java.lang.instrument or ASM) to inject code without modifying source.
Progress
83/100