Skip to content
Sharp

Java Annotations · interview question

Which Java API allows you to manipulate method parameters dynamically at runtime?

Multiple choiceHardchapter-16-curatedpremiumjava-annotationsannotation-processors
Choose one answer
Answer and explanation

Correct answer

B. Java.lang.reflect.Parameter

Why

The java.lang.reflect.Parameter API enables dynamic manipulation and inspection of method parameters at runtime. It allows developers to access parameter names and modifiers, which is useful in various metaprogramming scenarios.

Test yourself on Java Annotations

A free test with instant, explained results. No account needed.

Start free test
All Java Annotations questions →