TechieDrill Your World Of Technical Tutorials

Posts Tagged ‘annotation’

Java Annotations

11.22.2009 · Posted in Java

public class OverrideAnnotation { public static void main(String s[]) { OverrideExample e = new OverrideExample(); System.out.println(e.toString()); } } Annotations are kind of meta data which can be used in java classes. Typically methods, variables, classes and packages can be annotated. Annotations basically provides information to the java compilers. Annotations can able to used to generate XMLs. Try out the below ...