AR 23
(II Year)
Department: Common to all CSE Allied Branches
Name of the Subject: OBJECT ORIENTED PROGRAMMING THROUGH JAVA
Subject Code: 2305103
Name of the Subject Coordinator: Mr.K L GANAPATHI REDDY
Introduction to OOP, procedural programming language and 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.
UNIT-I
Q No Question CO PO Blooms Marks
Taxonomy
(Level)
1 What are the main features of Object- CO1 1 Remembering 2M
Oriented Programming (OOP) (L1)
2 Give three key differences between CO1 1 Remembering 2M
procedural programming and object- (L1)
oriented programming.
3 What is the purpose of using objects CO1 2 Remembering 2M
and classes in OOP? (L1)
4 What are the buzzwords of java? CO1 2 Remembering 2M
(L1)
5 Explain about different types of CO1 1 Understanding 5M
variables in java with example (L2)
6 Describe Inheritance, polymorphism, CO1 2 Understanding 5M
Encapsulation and data abstraction and (L2)
data hiding.
7 What is the role of the Java Virtual CO1 3 Understanding 5M
Machine (JVM) in executing a Java (L2)
program? Discuss its architecture and
importance in platform independence.
8 Explain about structure of java CO1 1 Understanding 5M
program with “Helloworld” sample (L2)
program
9 Explain the various decision making CO1 2 Applying(L3) 10M
statements available in java language
with suitable examples.
10 Write a Java program to search for an CO1 3 Applying(L3) 10M
element in a given list of elements
using binary search Mechanism.
11 Explain primitive data types in Java CO1 2 Applying(L3) 10M
with examples. How are primitive
type conversions and casting handled
in Java?
12 Describe about for-each loop and CO1 2 Applying(L3)/ 10M
iterative statements in java with Analyzing (L4)
example program
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, String and string handling methods
UNIT-II
Q No Question CO PO Blooms Marks
Taxonomy
(Level)
1 What is an array in Java? How do you CO2 1 Remembering 2M
declare and initialize an array? (L1)
2 List two common methods available for CO2 1 Remembering 2M
handling strings in Java. (L1)
3 What is a class in Java? How is it CO2 2 Remembering 2M
different from an object? (L1)
4 How does this keyword work in Java? CO2 2 Remembering 2M
(L1)
5 What are the different ways to provide CO2 1 Understanding 5M
input at runtime in java? Explain any (L2)
two ways with examples
6 Describe the various string handling CO2 2 Understanding 5M
methods in Java with sample program. (L2)
7 Develop a JAVA program to sort given CO2 3 Applying (L3) 5M
numbers using bubble sort technique
8 Explain about Garbage collection CO2 1 Understanding 5M
mechanism in java. (L2)
9 Write a JAVA program to implement CO2 2 Applying(L3) 10M
method overloading and explain the
difference between method overloading
and constructor overloading in Java.
10 What are constructors used for? Can CO2 3 Applying (L3) 10M
constructors be overloaded? Explain its
properties and Write a program in
support of your answer.
11 Explain about static block, static CO2 3 Analyzing 10M
variables and static methods in java with (L4)
suitable examples.
12 Explain in detail about nested classes CO2 2 Applying(L3)/ 10M
with the help of programs. Analyzing
(L4)
Inheritance, types of inheritance, super keyword, final keyword, overriding and abstract class.
Interfaces, creating the packages, using packages, importance of CLASSPATH and java.lang
package. Exception handling, importance of try, catch, throw, throws and finally block, user defined
exceptions, Assertions
UNIT-III
Q No Question CO PO Blooms Marks
Taxonomy
(Level)
1 What is the use of super keyword? CO3 1 Remembering 2M
(L1)
2 What is use of finally block in java CO3 2 Remembering 2M
(L1)
3 How is an interface different from an CO3 2 Remembering 2M
abstract class? (L1)
4 Is java supports multiple inheritance? CO3 2 Remembering 2M
Justify (L1)
5 Explain final keyword with all its CO3 1 Understanding 5M
usages. Support explanation with a (L2)
program.
6 Explain super keyword with all its CO3 2 Understanding 5M
usages. Support explanation with a (L2)
program.
7 What is a method overriding? Explain CO3 3 Understanding 5M
with example? (L2)
8 Give differences between abstract CO3 1 Understanding 5M
class and interfaces with sample (L2)
program on each.
9 Explain how packages are created in CO3 4 Applying(L3) 10M
Java. Write a program to
i) Construct a package with a class
Test that performs addition of 2
integers.
ii) import that package and run
10 Explain about Exception Handling in CO3 3 Applying(L3) 10M
Java in detail with suitable examples.
11 What is inheritance? Explain various CO3 4 Applying(L3) 10M
types of inheritance with example
program?
12 Define Interface and Write a Java CO3 2 Applying(L3)/ 10M
program to implement Interface. What Analyzing (L4)
kind of Inheritance can be achieved?
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, Linked HashMap; Iterable, Iterator
UNIT-IV
Q No Question CO PO Blooms Marks
Taxonomy
(Level)
1 What is synchronization and why is it CO4 1 Remembering 2M
important? (L1)
2 What is the purpose of calling the CO4 3 Remembering 2M
yield() method? (L1)
3 Explain the unique features of a Map CO4 2 Understanding 2M
interface. (L2)
4 List out the thread priorities. CO4 2 Remembering 2M
(L1)
5 What is multithreading? Java CO4 1 Understanding 5M
implements multithreading? Explain (L2)
one of these ways with suitable
example.
6 Write a program to convert an array to CO4 2 Understanding 5M
a collection and back. (L2)
7 Briefly explain about the thread life CO4 3 Understanding 5M
cycle with a neat diagram and (L2)
example.
8 If you create two threads in your CO4 1 Understanding 5M
program, how many threads actually (L2)
run? Explain the complete flow of
execution of threads inside a program.
9 Develop a JAVA program to Read CO4 4 Applying(L3) 10M
content from one file and Write into
another file.
10 What is set in JAVA collections CO4 3 Applying(L3) 10M
framework and explain its various
implementations.
11 Write a JAVA program that creates CO4 3 Applying(L3) 10M
threads by implementing Runnable.
First thread display “Good Morning
“every 1 sec, the second thread
displays “Hello “every 2 seconds and
the third display “Welcome” every 3
seconds.
12 Demonstrate the Collections class and CO4 5 Applying(L3)/ 10M
use the Analyzing (L4)
following methods in the class:
(a) rotate (b) max
(c) min (d) disjoint
(e) sort (f) binary search
Java FX GUI: Java FX Scene Builder, Java FX App Window Structure, displaying text and image,
event handling, laying out nodes in scene graph, mouse events
UNIT-V
Q No Question CO PO Blooms Marks
Taxonomy
(Level)
1 What was FXML? CO5 Remembering 2M
(L1)
2 What is JavaFX Scene Builder used for? CO5 Remembering 2M
(L1)
3 List out event handling methods. CO5 Remembering 2M
(L1)
4 What are the main components of a JavaFX CO5 Remembering 2M
application window? (L1)
5 Explain the steps in configuring VBox Layout CO5 Understanding 5M
Container. (L2)
6 What are the common layout panes in JavaFX, CO5 Understanding 5M
and how do they help arrange nodes in a scene (L2)
graph?
7 Explain JavaFX window App structure with CO5 Understanding 5M
diagram. (L2)
8 Discuss the EventHandler interface and how it is CO5 Understanding 5M
implemented to capture events like button clicks (L2)
or keyboard actions, with code snippets.
9 Explain about GridPane usage with an example. CO5 Applying(L3) 10M
10 Explain about Event handling classes that CO5 Applying(L3) 10M
supported in JavaFX.
11 Explain any Welcome App for displaying text CO5 Applying(L3) 10M
and images.
12 Discuss how to handle mouse events in JavaFX. CO5 Applying(L3)/ 10M
Provide examples of different types of mouse Analyzing (L4)
events, and explain how to capture and process
them in your application.
Blooms Taxonomy (Level)
L1: Remembering
L2: Understanding
L3: Applying
L4: Analyzing
L5: Evaluating
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, PearsonEducation,
3. C. Horstmann, BIG JAVA Compatible with Java 5 & 6, 3rd Edition, Wiley Publishers, 2008
TEXT BOOKS:
1. The complete Reference Java, 8th edition, Herbert Schildt, TMH.
2. Programming in JAVA, Sachin Malhotra, SaurabhChoudary, Oxford
3. Introduction to java programming, 7th edition by Y Daniel Liang, Pearson
4. JAVA 9 for Programmers, Paul Deitel, Harvey Deitel, 4th Edition, Pearson