BTECHII YEARII SEMESTER(AR20)
Name of the Course :Object Oriented Programming through Java
Course Code : 20ES4009
Name of the Course Coordinator :Mr. A. [Link]
QUESTIONBANK
[Link] QUESTIONS Level Course MARKS
Outcome
UNIT 1
Introduction to OOP, procedural programming language eand object oriented language, principles of OOP,
applications of OOP, history of java, java features, JVM, program structure. Variables, primitive data types,
identifiers ,literals, operators, expressions, precedence rules and associativity, primitive type conversion and
casting, flow of control.
1 List the differences between Procedure Remembering (L1) CO1 4M
Oriented Programming and Object
Oriented Programming (any four
differences)
2 Explain the data types such as int, byte, Understanding (L2) CO1 4M
short and long in Java language.
3 Explain the role of JVM with a neat Understanding (L2) CO1 4M
diagram.
4 Explain about inheritance, polymorphism, Understanding (L2) CO1 7M
encapsulation and data abstraction.
5 Explain the java features such as Platform Understanding (L2) CO1 7M
Independence, Robustness, Multithreading,
and Portability.
6 Explain the Java program structure with Understanding (L2) CO1 7M
an appropriate example.
7 Explain the various decision making Understanding(L2) CO1 10M
statements available in Java language with
suitable examples.
8 Explain the left-shift, right-shift, zero fill, Understanding (L2) CO1 10M
bitwise AND, and bitwise XOR operators
with suitable examples.
9 Develop a Java program to display Applying/Analyzing(L3/L4) CO1 10M
student result using selection statements.
Marks% Result
>=75 Distinction
60-74 First class
50-59 Second class
40-49 Third class
<40 Fail
UNIT 2
Classes and objects, class declaration, creating objects, methods, constructors and constructor
overloading, garbage collector, importance of static keyword and examples, this keyword, arrays,
command line arguments, nested classes.
1 Define Class and Object. Explain the Remembering (L1) CO2 4M
declaration of class and object with an
example?
2 Illustrate the uses of ‘this’ key word in Understanding (L2) CO2 4M
Java.
3 Illustrate the command line arguments in Understanding (L2) CO2 4M
Java language.
4 Define a Constructor function in Java and Remembering (L1) CO2 7M
list out the rules of a constructor function.
5 Tell how to define and declare an array in Remembering (L1) CO2 7M
Java and list out the various advantages
and disadvantages of an array.
6 Explain the nested classes concept in Java Understanding (L1) CO2 7M
language with suitable example.
7 Develop a JAVA program to overload a Applying/Analyzing (L3/L4) CO2 10M
constructor method and justify the need of
constructor overloading.
8 Explain about static block, static variables Understanding (L2) CO2 10M
and static methods in Java with suitable
examples.
9 Develop a JAVA program to sort given Applying/Analyzing (L3/L4) CO2 10M
numbers using bubble sort technique.
UNIT 3
Inheritance, types of inheritance, super keyword, final keyword, overriding and abstract class.
Interfaces, creating the packages, using packages, importance of CLASSPATH and [Link] package.
Exception handling, importance of try, catch, throw, throws and finally block, user defined exceptions,
Assertions.
1 Define inheritance and explain different Remembering (L1) CO3 4M
Types of inheritances supported in Java.
2 Explain the uses of final keyword in Java Understanding (L2) CO3 4M
with suitable examples.
3 Explain Abstract class with an example. Understanding (L2) CO3 4M
4 Explain about user-defined exceptions in Understanding (L2) CO3 7M
Java language.
5 Develop a JAVA program to invoke super Applying/Analyzing (L3/L4) CO3 7M
class constructor from sub class
constructor by using super keyword.
6 Develop a JAVA program to implement Applying/Analyzing (L3/L4) CO3 7M
Run-time polymorphism.
7 Explain how packages are created in Java. Applying/Analyzing (L3/L4) CO3 10M
Develop a program to
i) Construct a package with a class Test
that performs addition of 2 integers.
ii) Import that package and run
8 Explain about Exception Handling in Java Understanding (L2) CO3 10M
in detail with suitable examples.
9 Develop a JAVA program to implement Applying/Analyzing (L3/L4) CO3 10M
multiple inheritance.
UNIT 4
Multithreading: introduction, thread life cycle, creation of threads, thread priorities, thread
synchronization, communication between threads. Reading data from files and Writing data to files,
random access file. Collections: Collections Hierarchy; List – ArrayList, LinkedList; Sets – Hashset,
TreeSet, LinkedHashSet; Queue; Maps-HashMap, TreeMap, LinkedHashMap; Iterable, Iterator
1 Explain Collection hierarchy in Java Understanding (L2) CO4 4M
2 What is multithreading? And explain in how Remembering (L1) / CO4 4M
many ways the multithreading will be Understanding (L2)
implemented in Java language.
3 Demonstrate the use of the following Understanding (L2) CO4 4M
methods along with their syntax.
i. wait()
ii. notify()
iii. notifyAll()
iv. sleep()
4 Explain about the thread lifecycle with a Understanding (L2) CO4 7M
neat diagram and example.
5 Develop a Java program to display the Applying/Analyzing (L3/L4 CO4 7M
elements of a List in reverse order.
6 Develop a Java program to display even Applying/Analyzing (L3/L4) CO4 7M
and odd numbers simultaneously using
multithreading.
7 Develop a Java program to add and Applying/Analyzing (L3/L4) CO4 10M
remove elements on a LinkedHashSet.
8 Develop a Java program to add and Applying/Analyzing (L3/L4) CO4 10M
remove elements on a HashMap
9 Develop a Java program to read contents Applying/Analyzing (L3/L4) CO4 10M
from one file and write into another file.
UNIT 5
Event handling: event delegation model, sources of event, Event Listeners, adapter classes, inner classes.
AWT: introduction, components and containers, Button, Label, Checkbox, Radio Buttons, List Boxes,
Choice Boxes, Container class, Layouts, Menu and Scrollbar
1 Explain how to implement Choice boxes in Understanding (L2) CO5 4M
Java.
2 Explain the various layout managers in Java Understanding (L2) CO5 4M
language.
3 Explain how to implement List boxes in Java. Understanding (L2) CO5 4M
4 Explain about the event delegation model Understanding (L2) CO5 7M
In Java.
5 Explain the adapter classes available in Understanding (L2) CO5 7M
JAVA.
6 Develop a Java program to handle mouse Applying/Analyzing (L3/L4) CO5 7M
events
7 Develop a Java program to implement Applying/Analyzing (L3/L4) CO5 10M
Buttons and Labels.
8 Develop a Java program to implement Applying/Analyzing (L3/L4) CO5 10M
checkboxes and Radio buttons.
9 Build a Java program to implement menus Applying/Analyzing (L3/L4) CO5 10M
and scrollbars.
L1: Remembering
L2: Understanding
L3: Applying
L4: Analyzing
Course Outcomes:
At the end of the Course, Student will be able to:
CO-1 Understand the object oriented programming concepts
CO-2 Create simple applications using classes and objects.
CO-3 Develop applications using different types of inheritances
CO-4 Apply parallel processing applications using threads and simple applications using
Collections
CO-5 Develop GUI applications using AWT
Text Books:
1 The complete Reference Java,8thedition,Herbert Schildt, TMH.
2 Programmingin JAVA, Sachin Malhotra, Saurabh Choudary, Oxford.
3 Introduction to Java programming,7th edition by Y Daniel Liang, Pearson
Reference Books:
1 Dietal & Dietal, Java: How to Program,8th Edition, PHI, 2010
2 C. S. Horstmann and G. Cornell, Core Java, Vol 1. Fundamentals, 7th Edition,
Pearson Education,2004
3 [Link], BIG JAVA Compatible with Java5 & 6, 3rd Edition, Wiley
Publishers, 2008