You are on page 1of 4

ASSIGNMENT QUESTIONS:

UNIT 1
1. Bring out the importance of inheritance with the help of an example?
2. Briefly explain the concept of encapsulation with an example
3. Why the concept of polymorphism is considered to be very important Explain?
4. Briefly explain the salient features of java language?
5. What is standalone application? Briefly explain the procedure of creating and executing a
standalone application?
6. List 5 major differences between JAVA C and C++?
7. Explain how java is strongly associated with the Internet?
8. Explain how java is more secured than other languages?
9. What is a Buzzword? List and explain any 10 java buzzwords?
UNIT II
1 (a) What is an array? Why arrays are easier to use compared to a bunch of related ariables?
(b) Write a program for transposition of a matrix using arraycopy command.
2 (a) What is a constructor? What are its special properties?
(b) How do we invoke a constructor?
(c) What are objects? How are they created from a class?
3 (a) What is class? How does it accomplish data hiding?
(b) How do classes help us to organize our programs?
(c) Compare and contrast overloading and overriding methods.
4 (a) How does String class differ from the StringBuffer class?
(b) Briefly explain String class.
5 Briefly explain following:
(a) final & this keywords
(b) garbage collection
(c) passing parameter-call by value
(d) Overloading methods & Constructors.
6 (a) What is the difference between equality of objects and equality of objects and equality
of references that refer to them?
(b) What is the difference between a public member and a private member of a class?

UNIT III
1. Explain about Object class in detail.
2. What are the types of inheritances in java? Explain each of them in detail.
3. Write a java program to explain the concept of method overriding?
4. Explain the use of super() method in invoking a constructor?
5. What is an Abstract classes, Explain with examples?
6. Write a java program to illustrate the impact of final modifier?
7. Compare and contrast overriding and overloading methods?
8. Explain the member access rules in detail?
9. Explain in detail about finalizer methods ()?
UNIT IV
1. What is an Interface? Explain the structure of interface with an example?
2. Define package and show how the packages are implemented?
3. With the help of a java program illustrate the concept of import statement?
4. What are the major differences and similarities between interface and a class explain?
5. Explain the concept of Understanding there CLASS PATH?
6. Write a java program to show how the interface variables are accessed?
UNIT V
1. Explain the following exceptions with the help of examples:
(a) Arithmetic Exception
(b) Null Pointer Exception
(c) Number Format Exception.
2. What is the difference between unchecked and checked exceptions in java?
3. How does try catch mechanism handle an exception?
4. Define thread? Name and explain different states in the lifecycle of threads?
5. Differentiate multiprocessing and multithreading? What is to be done to implement these
in a program?
6. Explain about notify(), notifyall() and join() in threads?

UNIT VI
1. What is an Applet? Explain how does an Applet differ from the application?
2. Briefly Explain the Life cycle of an Applet?
3. With a sample java code explain the method of creating and executing an Applet?
4. Write an Applet to receive the value of the parameter message from the html file and
display it on the webpage?
5. Explain the following:
a) Creating an applet
b) Passing parameters to applets
c) Adding graphics and colors to applets.
UNIT VII
1 Write a java code to draw horizontal, vertical and diagonal lines by making use of graphics
methods?
2 Write a java code to Rectangle, Square and Rhombus by making use of graphics methods?
3 List and explain the different situations in which the Action Event is generated? Write the
event handler for the Action Event?
4 List and explain the different situations in which the item Event is generated? Write the
event handler for the item Event?
5 Define the purpose of the following Events
a) Focus Event
b) Text Event
c) Container Event
d) Window Event
e) Key Event
6 Mention and explain any five event handling methods for Mouse Event?
7 Mention and explain any five event handling methods for Window Event?
8 Mention and explain the event handling methods for Key Event?
9 List and explain about any five event listeners in AWT?
10 Describe briefly about delegation event model?
11 Explain about adapter classes in detail?
12 Mention and explain any five event handling methods for Component Event?
13 Mention and explain any five event handling methods for Container Event?
14 Explain any five methods used in container class?
15 What is a panel? How it is used for organizing the things in a controlled way?

16 Write a java code to explain frames in an AWT?


17 Are the classes frame and dialogs are subclasses of the window class? Explain.
18 List and explain about the various methods used in the font class?
19 List and explain about the various methods used in the colour class?
20 List and explain about the various drawing methods used in graphics class?
21 Write a java code to draw Ellipses and Circles by making use of graphics methods?
22 Write a java code to draw Arcs and Sector, Semicircle by making use of graphics
methods?
UNIT VIII
1. Briefly explain the components of AWT.
2. What are containers? List various containers. Explain the usage of JPanel with
example.
3. Differentiate following with suitable examples:
a) Frame, JFrame
b) Applet, JApplet
c) Menu, Jmenu.
4. List out various layout managers in java. Explain boarder layout manager.

You might also like