Assignment
Assignment
Assignment 1
1. With an example explain how enumeration values are used to control a
switch statement.
2. Demonstrate the usage of the valueOf() and values() methods with an
example
3. What does ordinal(), compareTo() and equals() method do in Enum? Give
an example.
4. Describe the Wrapper classes available for primitive types.
5. What Is Autoboxing And Unboxing? Explain with an example.
6. What Are Annotations? What are the three retention policies defined by
the RetentionPolicy enumeration in Java?
7. Write a note on EventDescriptor and PropertyDescriptor class
8. What are the different properties of a Java Bean? Explain with examples
9. Explain any four Built-in annotations.
10.What are the steps to be followed in creating a new Bean?
****************************************************************