ST. ANN’S COLLEGE OF
DEPARTMENT OF COMPUT
ERSCIENCE & ENGINEER
Subject: OBJECT ORIENTED PROGRAMMING THROUGH JAVA
Year & Sem/Section: II
Basics of OOP
xplain the importance of
Object Oriented paradigm.
2. Describe the components of object oriented world.
3. Write short notes on:
lasses and instances
Explain the Abstraction
mechanisms supported by Object Oriented paradigm
Explain: (a) Dynamic binding
(b) Message passing.
Write the difference between Data abstraction and data encapsulation
7. Explain about Inheritance and polymorphism
1. Distinguish the following terms.
(a) Objects and classes. (b) Data abstraction and Data encapsulation.
2. Explain different abstraction mechanisms possible in object oriented programming.
3. Distinguish the following term
(a) Inheritance and Polymorphism. (b) Dynamic binding and message passing.
4. What does tostring () method returns? How is it handled in Java? Explain with an
. How many Data types are in java? Explain with ranges.
Write a Java program that implements Linear Search?
(b) What does System.out.println in Java?
What does tostring() method returns? How is it handled in Java? Explain with an
What is an abstract class? What is its
importance? How is it designed in java?
How the keyword ‘final’ ca
n be used to prevent Overriding
What is the mechanism by which a call to an overridden method is resolved at
Explain with an example.
What are the types of
inheritances in java? Explain each of them in detail.
Explain in detail about benefits of inheritance and costs of inheritance
How the keyword ‘Super’ can be used explain with example
iscuss about Hybrid Inheritance with a suitable example.
(b) Discuss about Hierarchical Inheritance with a suitable example.
8. (a) Explain about final classes, final methods and final variables?
(b) Explain about the abstract class with example
Packages and Interfaces
What are the Packages provided by java API? Explain.
Write Java code to obtain Date and Time.
Explain Buffered Reader and BufferedWriter
classes from I package with an
Explain FileInputStream and FileOutputStream with an example for each.
5. How to set CLASSPATH. Explain in detail?
6. Define interface.How to implement & extending interfaces in java.
. Difference b/w classes an
Write a sample program to illustrate packages.
Exception handling and multithreading
1. (a) What is a thread? Explain the concept of a Multithread Programming.
(b) Describe the life cycle of a thread?
2. In JAVA, is
exception handling implicit or explicit or both. Explain with the help of
example java programs.
3. What are Checked Exceptions and Unchecked Exceptions? Explain some of
exceptions with an example and also give the differences between them.
4. List &
explain the various methods defined by the thread class with examples of
What is an Exception? Explain the usage of try, catch, throw, throws and finally keywords
6. (a). Explain thread life cycle
(b). Define synchronizing threa
d and daemon threads.
(a) Give the Class hierarchy in Java related to exception handling. Briefly explain each class.
(b) What is the necessity of exception handling? Explain exception handling taking “divide
zero” as an example.
(a) Explain how threads with different priorities execute in environment which supports
priorities and which doesn’t support priorities.
(b) what are the functions available in java related to priority.
(a). What is an
Applet?Explain the types of applets
(b). creating applets with example.
Explain the differences b/w the applets and application Programs.
Explain the life cycle of an applet.
(a).Write short notes on passing parameters to applets
o Applet communication
1. (a) Explain the reason of creating a subclass of Frame is preferred over creating
Frame when creating a window.
(b) Explain the steps in creating a subclass of frame with the help of examples.
2. Describe the ActionEvent
the AdjustmentEvent, the ComponentEvent and the
ContainerEvent classes along with their methods and constructors.
3. Define Abstrac
t class and Interface and what is the difference between them explain
4. Briefly explain the following terms:
(a) Component. (b) Container. (c) Panel. (d) Window.
Write a stand
alone AWT based application which creates a frame window that responds
mouse clicks and key strokes.
. (a) What are the advantages of Layout managers? Why Java prefers Layout managers
instead of fixing th
e component by x & y Coordinates? What are the different Layout
managers AWT supports?
(b) What is preferred size of a component and how it is related to the LayoutManagers.
. (a) In what way JList differ from JComboBox?
(b) JList does not support
scrolling. Why? How this can be remedied? Explain
. What are various JFC containers? List them accor
ding to their functionality. Ex
of them with examples.
What are the methods supported by the following interfaces. Explain ea
ch of them
(a) ActionListener interface (b) MouseMotionListener interface (c) TextListener interface.
9. How will you create check boxes and Choice boxes? Explain the steps in detail.
1. Define swing? And what
are the limitations of AWT?
2. Explain the MVC architecture
Explain trees and tables.
What are various JFC containers? List them according to their functionality. Explain each of
them with examples.
5.(a) In what way JList differ from
(b) JList does not support scrolling. Why? How this can be remedied? Explain with an
6. Explain the steps involved in creating JCheckBox, JRadioButton, JButton, JLabel
7. Differentiate following with suitable examples:
(a) Frame, JFrame
(b) Applet, JApplet
(c) Menu, Jmenu