In this session, we will learn about annotations. Firstly, we will see the definition of annotation, standard annotations and then we will learn to write our own annotations.
As of now, with Scala we can create compile time annotations (could we create runtime ones without resorting to Java?). For example, if you look at the @tailrec annotation in Scala then it would verify that the method can be compiled with tail call optimization. Again, at compile time.
Enjoy the annotations session and send us your feedback at hello@knoldus.com