

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Q1.a. What is the difference between JVM , JDK , JRE? (2) Q1.b. What happen if you type main instesd of main in java? (2) Q1.c. How enhanced for loops works in java. (2) Q1.d. What are the uses of final keyword in java. (2) Q1.e. Why abstract class has constructor even though you cannot create its object? (2) Q2.a. How various garbage collection algorithms are chosen in texting in context of specific environment. What are the parameters while selecting a particular GC algorithm? (5) Q2.b. How do class loader work and what are the different types of class loader in java. (5) Q3.a. Implement stack operations of push and pop using an interface. (5) Q3.b. Program a create a superclass called figure that stores the dimensions of a two-dimensional object. It also define a method called area() the computes the area of an object. The first rectangle and the second triangle. Each of these subclass override area() so that it the area of a rectangle aand a triangle , respectively. (5) Q4.a. Draw the life cycle of Applets and make a moving banner using Applets. (5) Q4.b. What is a custom Execution. Make a custom exception as InsfficientFundsException to handle wrong operations done by customers in withdrawl operations. (5)