Friday, March 25, 2016

Java interview Prepration

Annotation:

1. What is annotation?
2. How to create and declare annotation?
3. How to scan classes for annotation means use of annotation? What are open source available for that like spring to scan annotaiton?
4. How annotation driven is better than XML configuration?


Enum:
1. Why we need enum though we have classes and interfaces?
2. How to create and declare enum?
3. Is enum can extends some one? also someone can extends enum?
4. When to use?

JVM:

Size of java primitives on 32/64 bit jvm?


Thread:
1) How to notify a specific thread?
2)

References:
http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html