Pergunta de entrevista da empresa Broker Consulting

What are the @Target and @Retention annotations used for? What is the difference between RUNTIME and COMPILE retention policies?