August 2014
Intermediate to advanced
704 pages
20h 16m
English
CHAPTER 1
![]()
Annotations
In this chapter, you will learn
What Are Annotations?
Annotations were introduced in Java 5. Before I define annotations and discuss their importance in programming, let’s discuss a simple example. Suppose you have an Employee class, which has a method called setSalary() that sets the salary of an employee. The method accepts a parameter of the type double. The following snippet of code shows a trivial ...