Docsity

Programming in Java class test, Exams of Java Programming

Toggle sidebar
bg1
PROGRAMMING IN JAVA
Paper code: CIC-212
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)
pf2

Partial preview of the text

Download Programming in Java class test and more Exams Java Programming in PDF only on Docsity!

PROGRAMMING IN JAVA

Paper code: CIC-

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)