Annotations

  • Annotations help us in determining basic errors before hand before compilation.
    • For example if we misspell an overridden method then in that case we can check it before compilation only if it has @override annotation above it.
    • In Spring framework many issues can be predicted in advanced i.e. before application compiler.
    • Before annotations we used to do all configurations in Spring framework in the xml configuration file.
      • for example @bean/@component annotation directly class can be used as a bean. 

No comments:

Post a Comment