Annotations Reflection Jedi Attack Challenge

Reflection Jedi Attack

Annotations with Java are widely used with most of the popular frameworks. Put simply, annotations are a way to configure metadata for a class, attribute, or method. You will see annotations being used for dependency injection for example. Lombok, the lib that makes your data objects much simpler makes vast use of annotations. To make the best use of annotations, we need to use reflection to apply some logic to our annotated code.

To get you familiar with the concept, try out this Java code Challenge and improve your skills!

It's time to improve your Java skills with this Reflection Jedi Attack Challenge

Reflection Jedi Attack Challenge

What will happen when running the following code?

Reflection Jedi Attack

You can also watch the full video explanation at the following link: (I recommend you to try out the Java code challenge first though)

Keep breaking your limits, challenger!

Written by
Rafael del Nero
Join the discussion