Explain features of JAVA.
[5 marks]Write a java program to print prime number upto 100.
[5 marks]What is constructor? How it is different from methods?
[5 marks]Declare a class called employee having employee_id and employee_name as members. Extend class employee to have a subclass called salary having designation and monthly_salary as members. Define following: - Required constructors - Amethod to find and display all details of employees drawing salary more than Rs. 20000/-. - Method main for creating an array for storing these details given as command line arguments and showing usage of above methods.
[5 marks]Explain method overriding with the help of example.
[5 marks]Differentiate between interface and abstract class.
[5 marks]What do you mean by dynamic method dispatching? Explain it by giving an example.
[5 marks]Explain JAVA API Packages in detail.
[5 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.
[5 marks]Write a program that generates custom exception if any integer value given from its command line arguments is negative.
[5 marks]What are the steps for creating a new thread of execution?
[5 marks]Explain synchronization and join method of thread.
[5 marks]Give the difference between checked and unchecked exceptions.
[5 marks]Draw and explain life cycle of applet.
[5 marks]Describe the various sections of web page.
[5 marks]Write an applet that draws four horizontal bars of equal size & of different colors such that they cover up the whole applet area. The applet should operate correctly even if it is resized.
[5 marks]Explain event handling in JAVA.1
[5 marks]