What is the use of annotations?



What is the use of annotations?..

Answer / Sudhakar Sharma

Annotations in Spring Framework (and Java in general) are used to declare additional information about programming constructs (like classes, methods, fields) at compile-time. This metadata enables powerful functionality such as dependency injection, aspect-oriented programming, and more.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is difference between oauth and oauth2?

1 Answers  


Explain the working principle of spring batch.

1 Answers  


List some of the design patterns used in the spring framework?

1 Answers  


What are pojo classes in spring?

1 Answers  


What is logback?

1 Answers  


What is the default autowiring mode?

1 Answers  


What is a 3 tier architecture?

1 Answers  


What is @springboottest?

1 Answers  


What is @responsebody in spring?

1 Answers  


What are inner beans in spring?

1 Answers  


What is a transactional view?

1 Answers  


Name the exception class which is connected to the exceptions thrown by the applications?

1 Answers  


Categories