Blog Archives

8 Java Annotations interview Questions and Answers

Q1. Are annotations a compile time or run-time feature? A1. You can have either compile-time or run-time annotations. @Override is a simple compile-time annotation to catch little mistakes like typing tostring( ) instead of toString( ) in a subclass. … Read more ›...

More Java annotations interview questions & answers

Q1. What do you understand by the terms annotation types, annotations, and annotation processors? A1. An annotation type is used for defining an annotation. Java 5 defines a number of annotation types like @Override, @SuppressWarnings, @Deprecated, etc and meta annotation types that are used by annotation (i.e. … Read more...

800+ Java Q&As & tutorials