MRV (Deemed to be University) Malla Reddy Technical
Campus
25IRS301: I N F O R M A T I O N R E T R I E V A L S Y S T E M S
B.Tech - II Year I Semester L T P C
3 0 0 3
Course Objectives
● To understand the basic object-oriented programming concepts and
apply them in problem solving.
● To illustrate inheritance concepts for reusing the program.
● To demonstrate multitasking by using multiple threads and event handling
● To develop data-centric applications using JDBC.
● To understand the basics of java console and GUI based programming
Course Outcomes
● Demonstrate the behavior of programs involving the basic programming
constructs like control structures, constructors, string handling and
garbage collection.
● Demonstrate the implementation of inheritance (multilevel, hierarchical
and multiple) by using extend and implement keywords
● Use multithreading concepts to develop inter process communication.
● Understand the process of graphical user interface design and
implementation using AWT or swings.
● Develop applets that interact abundantly with the client environment and
deploy on the server.
UNIT - I
Object oriented thinking and Java Basics- Need for oop paradigm, summary of oop
concepts, coping with complexity, abstraction mechanisms. A way of viewing world –
Agents, responsibility, messages, methods, History of Java, Java buzzwords, data types,
variables, scope and lifetime of variables, arrays, operators, expressions, control statements,
type conversion and casting, simple java program, concepts of classes, objects,
constructors, methods, access control, this keyword, garbage collection, overloading
methods and constructors, method binding, inheritance, overriding and exceptions,
parameter passing, recursion, nested and inner classes, exploring string class.
UNIT - II
Inheritance, Packages and Interfaces – Hierarchical abstractions, Base class object,
subclass, subtype, substitutability, forms of inheritance specialization, specification,
construction, extension, limitation, combination, benefits of inheritance, costs of
Object Oriented Programming Admitted from A.Y. 2025-2026
Batch
MRV (Deemed to be University) Malla Reddy Technical
Campus
inheritance. Member access rules, super uses, using final with inheritance, polymorphism-
method overriding, abstract classes, the Object class. Defining, Creating and Accessing a
Package, Understanding CLASSPATH, importing packages, differences between classes and
interfaces, defining an interface, implementing interface, applying interfaces, variables in
interface and extending interfaces. Exploring java.io.
UNIT – III
Exception handling and Multithreading-- Concepts of exception handling, benefits of
exception handling, Termination or resumptive models, exception hierarchy, usage of try,
catch, throw, throws and finally, built in exceptions, creating own exception subclasses.
String handling, Exploring java.util. Differences between multithreading and multitasking,
thread life cycle, creating threads, thread priorities, synchronizing threads, inter thread
communication, thread groups, daemon threads. Enumerations, autoboxing, annotations,
generics.
UNIT – IV
Event Handling: Events, Event sources, Event classes, Event Listeners, Delegation event
model, handling mouse and keyboard events, Adapter classes. The AWT class hierarchy,
user interface components- labels, button, canvas, scrollbars, text components, check box,
checkbox groups, choices, lists panels – scrollpane, dialogs, menubar, graphics, layout manager
– layout manager types – border, grid, flow, card and grid bag.
UNIT - V
Applets – Concepts of Applets, differences between applets and applications, life cycle of
an applet, types of applets, creating applets, passing parameters to applets. Swing –
Introduction, limitations of AWT, MVC architecture, components, containers, exploring swing-
JApplet, JFrame and JComponent, Icons and Labels, text fields, buttons – The JButton class,
Check boxes, Radio buttons, Combo boxes, Tabbed Panes, Scroll Panes, Trees, and Tables.
List of Experiments:
1. Use Eclipse or Net bean platform and acquaint yourself with the various menus. Create
a test project, add a test class, and run it. See how you can use auto suggestions, auto fill.
Try code formatter and code refactoring like renaming variables, methods, and classes. Try
debug step by step with a small program of about 10 to 15 lines which contains at least
one if else condition and a for loop.
2.Write a Java program that works as a simple calculator. Use a grid layout to arrange
buttons for the digits and for the +, -,*, % operations. Add a text field to display the result.
Handle any possible exceptions like divided by zero.
3. A) Develop an applet in Java that displays a simple message.
B) Develop an applet in Java that receives an integer in one text field, and
Object Oriented Programming Admitted from A.Y. 2025-2026
Batch
MRV (Deemed to be University) Malla Reddy Technical
Campus
computes its factorial Value and returns it in another text field, when the button
named “Compute” is clicked.
4.Write a Java program that creates a user interface to perform integer divisions. The user
enters two numbers in the text fields, Num1 and Num2. The division of Num1 and Num 2 is
displayed in the Result field when the Divide button is clicked. If Num1 or Num2 were not
an integer, the program would throw a Number Format Exception. If Num2 were Zero, the
program would throw an Arithmetic Exception. Display the exception in a message dialog
box.
5. Write a Java program that implements a multi-thread application that has three threads.
First thread generates a random integer every 1 second and if the value is even, the
second thread computes the square of the number and prints. If the value is odd, the third
thread will print the value of the cube of the number.
6.Write a Java program for the following: Create a doubly linked list of elements.
Delete a given element from the above list. Display the contents of the list after deletion.
7.Write a Java program that simulates a traffic light. The program lets the user select one
of three lights: red, yellow, or green with radio buttons. On selecting a button, an
appropriate message with “Stop” or “Ready” or “Go” should appear above the buttons in
the selected color. Initially, there is no message shown.
8. Write a Java program to create an abstract class named Shape that contains two integers
and an empty method named print Area (). Provide three classes named Rectangle,
Triangle, and Circle such that each one of the classes extends the class Shape. Each one of
the classes contains only the method print Area () that prints the area of the given shape.
9.Suppose that a table named Table.txt is stored in a text file. The first line in the file is the
header, and the remaining lines correspond to rows in the table. The elements are
separated by commas.
Write a java program to display the table using Labels in Grid Layout.
10. Write a Java program that handles all mouse events and shows the event name at
the center of the window when a mouse event is fired (Use Adapter classes).
11. Write a Java program that loads names and phone numbers from a text file where
the data is organized as one line per record and each field in a record are separated by a
tab (\t). It takes a name or phone number as input and prints the corresponding other value
from the hash table (hint: use hash tables).
12. Write a Java program that correctly implements the producer – consumer problem
Object Oriented Programming Admitted from A.Y. 2025-2026
Batch
MRV (Deemed to be University) Malla Reddy Technical
Campus
using the concept of inter thread communication.
13. Write a Java program to list all the files in a directory including the files present in
all its subdirectories.
REFERENCE BOOKS:
1. Java for Programmers, P. J. Deitel and H. M. Deitel, 10th Edition Pearson
education.
2. Thinking in Java, Bruce Eckel, Pearson Education.
3. Java Programming, D. S. Malik and P. S. Nair, Cengage Learning.
4. Core Java, Volume 1, 9th edition, Cay S. Horstmann and G Cornell, Pearson.
5. An Introduction to programming and OO design using Java, J.Nino and F.A.
Hosch, John wiley & sons.
6. An Introduction to OOP, third edition, T. Budd, Pearson education.
7. Introduction to Java programming, Y. Daniel Liang, Pearson education
8. An introduction to Java programming and object-oriented application
development, R.A. Johnson- Thomson.
TEXT BOOKS:
1. Java the complete reference, 7th edition, Herbert schildt, TMH.
2. Understanding OOP with Java, updated edition, T. Budd, Pearson education.
Object Oriented Programming Admitted from A.Y. 2025-2026
Batch