Intro to Java Annotations
Programming, Tutorial No Comments »Annotations allow you to attach metadata to a field, class, or method. Metadata is data that describes something else. For example, metadata about a song in mp3 format could be the artists name or the bit rate it was encoded at. A jpeg image could have metadata that described the image height or the number of colors in the image.
What do they look like?
1 2 3 4 | @Override public String getName() { return "no name"; } |
The word after the ‘@’ is the Annotation. It precedes a method or class name. The Override annotation is built into Java. It is used to indicate that a method overrides a parents method. These are used for compiler hinds, for documentation, and to apply meta data.
Read the rest of this entry »
This is part of our series on building a NAS. In this article we will get the box set up with a static IP address, and get your drives set up for RAID 1.







Recent Comments