Are annotations inherited?



Are annotations inherited?..

Answer / Brahmanand Thakur

In Spring Framework, annotations can be inherited by subclasses if they are defined in a superclass and not overridden by annotation-suppressing directives (such as @SuppressWarnings) or explicit annotations (such as @Override). However, inherited annotations must still comply with the target declarations specified in the superclass.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is spring ioc in simple words?

1 Answers  


What is the application context in spring?

1 Answers  


What is the difference between di and ioc in spring?

1 Answers  


What is the spring mvc framework?

1 Answers  


What is dependency injection in spring?

1 Answers  


Explain the model 1 and model 2 architecture of spring framework.

1 Answers  


Why do we use ioc in spring?

1 Answers  


What is an aspect?

1 Answers  


What is bean in spring?

1 Answers  


What is spring data jpa?

1 Answers  


What is step in spring batch?

1 Answers  


What is init method in spring?

1 Answers  


Categories