0% found this document useful (0 votes)
4 views

Advanced Java-Assignment-1

The document outlines an assignment focused on Advanced Java and J2EE, covering topics such as enumerations, annotations, Java Beans, and the Collections Framework. It includes both short answer and long answer questions aimed at assessing knowledge on the functionalities, benefits, and properties of these concepts. Key areas of inquiry include the creation of enumerations, the purpose of annotations, and the advantages of using Java Beans and the Collections Framework.

Uploaded by

Akash Akash
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Advanced Java-Assignment-1

The document outlines an assignment focused on Advanced Java and J2EE, covering topics such as enumerations, annotations, Java Beans, and the Collections Framework. It includes both short answer and long answer questions aimed at assessing knowledge on the functionalities, benefits, and properties of these concepts. Key areas of inquiry include the creation of enumerations, the purpose of annotations, and the advantages of using Java Beans and the Collections Framework.

Uploaded by

Akash Akash
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Advanced Java & J2EE

Assignment-1

1. What is an enumeration? How enumeration can be created?


2. Differentiate values() and valueOf() methods in Java enumerations.
3. Give the functionalities of compareTo(), and equals() methods in Java enumerations.
4. Why are type wrappers used in Java?
5. What is the benefit of autoboxing and auto-unboxing in Java?
6. What is retention policy? How to set retention policy? Give an example
7. Define Marker Annotation
8. List any two built in annotations with its purpose.
9. Write any two restrictions on annotation.
10. What is the primary purpose of annotations in Java code?
11. How are annotations declared in Java?Give example
12. List two advantages of Java Beans
13. Why is introspection essential for Java Beans technology?
14. What are the two main components used to define a simple property in a Java
Bean. Briefly explain their roles
15. What is persistence in JavaBeans?
16. What is collection Framework. List any two goals of collection Framework.
17. What are the benefits of using the Collections Framework?

Long Answer Questions


1. With an example explain how enumeration values are used to control a switch
statement.
2. What does ordinal(), compareTo() and equals() method do in Enum? Give an example.
3. What Are Annotations? What are the three retention policies defined by the
Retention Policy enumeration in Java?
4. Explain any three Built-in annotations.
5. Write an example of defining a marker annotation
6. What are the different properties of a Java Bean? Explain with examples
7. List any five methods of Collection interface with its purpose.
8. List and explain any five methods

You might also like