Write any seven. 1. Byte code 2. Amethod in Interface is always abstract. Why?Write one disadvantage of layering scheme. 3. Abstract and final cannot be used together. Justify. 4. List any two AWT components. 5. Any two required attributes of Applet tag. 6. What is meta-annotation? 7. ‘new’ operator is used to create both primitive types and objects.(True or False) 8. Full form of JVM.
[7 marks]Do as directed: 1. Why Java is so popular? 2. What is an interface? How it is important in Java? Explain with example.
[4 marks]Explain the life cycle of Thread. Specify some important methods of Thread class.
[7 marks]What is Thread? How thread is created in Java? Explain with example.
[7 marks]What is an abstract class? What is an interface? Write a java program to explain the need of these concepts.
[7 marks]Define package. State the steps to create and import a package
[7 marks]What is collection framework? Discuss Vector, HashTable and Enumeration with their methods.
[7 marks]What is Package? State the steps to create and import a package with required java program code.
[7 marks]Explain the life cycle of Thread. Specify some important methods of Thread class.. Explain enum type with example.
[7 marks]Differentiate final and finally with example
[7 marks]07
[ marks]What is an event listener? List down all event listener and use it for which component.
[7 marks]What is Layout Manager? Explain the different types of layout in details.
[7 marks]Create a class called product, each product has a name, code and price. Create a vector of product objects. Write a program to add, modify, delete product from vector. After above operations on vector, vector elements should be displayed.
[7 marks]Discuss about initializer blocks and class initializer blocks.
[7 marks]What is the difference between runtime errors and compile time errors? Explain using suitable example
[7 marks]Explain the difference between Comparable and the Comparator interfaces. Explain them with appropriate example
[7 marks]