W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
17 questions for “Reflection API”
Found in 1 field. Select a question to see its full answer.
Matching topics
C#
Attributes &
Reflection
1
Information Technology
17 questions in 3 technologies
#
Question
Technology
Topic
Level
1
What is
reflection
in C#, and what are its most common practical uses and performance trade-offs?
C# › Attributes & Reflection
C#
Attributes &
Reflection
Intermediate
2
What is the difference between compile-time annotation processing (via javax.annotation.processing.Processor) and runtime
reflection
-based annotation reading?
Java › Annotations
Java
Annotations
Intermediate
3
How would you use a Class<T> token parameter to work around type erasure when a generic method genuinely needs runtime access to the actual type argument, such as for deserialization or
reflection
-based instantiation?
Java › Generics
Java
Generics
Intermediate
4
What is the difference between 'exports' and 'opens' in a module-info.java file, and why does
reflection
-heavy code (like many dependency injection or serialization frameworks) specifically require the latter?
Java › Java Platform Module System (JPMS)
Java
Java Platform Module System (JPMS)
Intermediate
5
How would you read custom annotations at runtime using
reflection
to implement annotation-driven behavior, such as a simple dependency injection or validation framework?
Java › Annotations
Java
Annotations
Advanced
6
How would you implement annotation-based validation (similar to Bean Validation's @NotNull, @Size) using a custom annotation and a
reflection
-based validator?
Java › Annotations
Java
Annotations
Advanced
7
How would you design a custom annotation-driven caching mechanism (similar to Spring's @Cacheable) using a dynamic proxy combined with
reflection
?
Java › Annotations
Java
Annotations
Advanced
8
How does JPMS's strong encapsulation interact with
reflection
-heavy frameworks and libraries that predate the module system, and what specific JVM flags (like --add-opens) exist as an escape hatch for cases where proper module declarations aren't feasible?
Java › Java Platform Module System (JPMS)
Java
Java Platform Module System (JPMS)
Advanced
9
How do you enable and use gRPC
reflection
for service discovery and debugging tools like grpcurl or Postman?
ASP.NET Core › gRPC Services
ASP.NET Core
gRPC Services
Intermediate
10
What are annotations in Java, and what purpose do they serve?
Java › Annotations
Java
Annotations
Beginner
Show all 17 questions in Information Technology