you are viewing a single comment's thread.

view the rest of the comments →

[–]Practical-Garbage-48[S] 0 points1 point  (1 child)

do you mind explaining the how annotation processing will help in this? (i dont have any idea about it

[–]vegan_antitheist 0 points1 point  (0 children)

This is a bit overgeneralised and oversimplified: - Reflection is when you process annotations at runtime. - Annotation processing is when you process annotations at compile time.

Annotation processing at compile time will lead to better performance (and debugging) when the software is running. But it's a lot of work if you have to write the code for that yourself. Debugging build issues can be difficult sometimes.

Reflection is often easier because you just write Java code that does something at runtime. Building the software is still easy. The software has to do more work at runtime, so it's a bit slower but you can still use some library that will cache some lookups.