Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 30

Department of Information Technology

Course File

II B. Tech I Semester
Subject: Object Oriented Programming through Java
Subject Code: C0511
Mrs.M.Sandhya Vani
Assistant Professor,
IT Dept.,

Academic Year 2023-24


Regulations: MR22

Malla Reddy Engineering College


(Autonomous)
(Approved by AICTE & Affiliated to JNTUH, Hyderabad)
Maisammaguda, Dhulapally(Post via Kompally) Secunderabad - 500100
Malla Reddy Engineering College
(Autonomous)

Maisammaguda, Dhulapally (Post Via Kompally), Secunderabad-500100

VISION

To be a premier center of professional education and research, offering quality programs


in a socio-economic and ethical ambience.

MISSION

 To impart knowledge of advanced technologies using state-of-the-art infrastructural


facilities.
 To inculcate innovation and best practices in education, training and research.
 To meet changing socio-economic needs in an ethical ambience.
Malla Reddy Engineering College
(Autonomous)
Department of Information Technology

Department Vision
Crop qualified IT professionals, entrepreneurs, innovators and researchers with essential
skills and aptitude to function in the IT domain and with wisdom and versatility that will
last forever despite an ever-changing environment.

Department Mission
 To impart quality education and research to undergraduate and postgraduate students in
Information Technology (IT).
 To train students in advanced technologies using state-of-the-art facilities.
 To develop knowledge, skills and aptitude to function in the IT domain based on ethical values
and social relevance.
Malla Reddy Engineering College
Autonomous
Department of Information Technology

Programm Educational Objectives (PEOs)

PEO 1:
To outshine in professional career with sound problem solving ability for providing IT solutions
by proper plan, analysis, design, implementation and validation.

PEO 2:
To pursue training, advance study and research using scientific, technical and communication
base to cope with the evolution in the technology.

PEO 3:
To utilize the acquired technical skills and knowledge for the benefit of society
Malla Reddy Engineering College
Autonomous
Department of Information Technology
PROGRAMME OUTCOMES (POs)
PO 1: Engineering Knowledge: Apply the knowledge of mathematics, science, engineering
fundamentals, and an engineering specialization to the solution of complex engineering problems.
PO 2: Problem Analysis: Identify, formulate, review research literature and analyze complex
engineering problems reaching substantiated conclusions using first principles of mathematics, natural
sciences, and engineering sciences.
PO 3: Design / Development of Solutions: Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate consideration for
the public health and safety, and the cultural, societal, and environmental considerations.
PO 4: Conduct Investigations of Complex Problems: User research -based knowledge and research
methods including design of experiments, analysis and interpretation of data, and synthesis of the
information to provide valid conclusions.
PO 5: Modern Tool Usage: Create, select, and apply appropriate techniques, resources, and modern
engineering and IT tools including prediction and modeling to complex engineering activities with an
understanding of the limitations.
PO 6: The Engineer and Society: Apply reasoning informed by the contextual knowledge to assess
societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the
professional engineering practice.
PO 7: Environment and Sustainability: Understand the impact of the professional engineering
solutions in societal and environmental contexts, and demonstrate the knowledge of, and need for
sustainable development.
PO 8: Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms
of the engineering practice.
PO 9: Individual and Team Work: Function effectively as an individual and as a member or leader in
diverse teams, and in multi disciplinary settings.
PO 10: Communication: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and write effective
reports and design documentation, make effective presentations, and give and receive clear instructions.
PO 11: Project Management and Finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and leader in a
team, to manage projects and in multi-disciplinary environments.
PO 12: Life-long learning: Recognize the need for, and have the preparation and ability to engage in
independent and life-long learning in the broadest context of technological change.
Malla Reddy Engineering College
Autonomous
Department of Information Technology

PROGRAMME SPECIFIC OUTCOMES (PSOs)

PSO 1:
Identify the mathematical abstractions and algorithm design techniques together with emerging
Software Tools to solve complexities indulged in efficient programming.

PSO 2:
Apply the core concepts of current technologies in the hardware, software mains in
accomplishing IT enabled services to meet out societal needs.

PSO 3:
Practice modern computing techniques by continual learning process with ethical
concerns in establishing innovative career path
Malla Reddy Engineering College
Autonomous
Department of Information Technology
Maisammaguda, Dhulapally (Post via Kompally), Secunderabad – 500 100.

Academic Calendar
Malla Reddy Engineering College
Autonomous
Department of Information Technology

 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.

MODULE-I: [10 Periods]

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.

MODULE II: [10 Periods]


Inheritance and Packages– Hierarchical abstractions, Base class object, subclass, subtype, substitutability, forms
of inheritance specialization, specification, construction, extension, limitation, combination, benefits of inheritance,
costs of 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.

MODULE III: [09 Periods]


Interfaces - Defining an interface, differences between classes and interfaces, implementing interface, applying
interfaces, variables in interface and extending interfaces. Exploring java.io.

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.
MODULE IV: [09 Periods]
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.

MODULE V: [09 Periods]


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.

TEXT BOOKS:
1. Java the complete reference, 7th edition, Herbert schildt, TMH.
2. Understanding OOP with Java, updated edition, T. Budd, Pearson education.

REFERENCES:
1. An Introduction to programming and OO design using Java, J.Nino and F.A. Hosch, John wiley & sons.
2. An Introduction to OOP, third edition, T. Budd, Pearson education.
3. Introduction to Java programming, Y. Daniel Liang, Pearson education.
4. An introduction to Java programming and object-oriented application development, R.A. Johnson-
Thomson.
5. Core Java 2, Vol 1, Fundamentals, Cay.S. Horstmann and Gary Cornell, eighth Edition, Pearson
Education.
6. Core Java 2, Vol 2, Advanced Features, Cay.S. Horstmann and Gary Cornell, eighth Edition, Pearson
Education.
7. Object Oriented Programming with Java, R.Buyya, S.T.Selvi, X.Chu, TMH.
8. Java and Object Orientation, an introduction, John Hunt, second edition, Springer.
9. Maurach‟s Beginning Java2 JDK 5, SPD.

Course Outcomes:
At the end of the course, students will be able to
 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.

FACULTY HOD
MALLA REDDY ENGINEERING COLLEGE

Bloom’s Revised Taxonomy


There are six levels of cognitive learning according to the revised version of Bloom’s
Taxonomy. Each level is conceptually different. The six levels are remembering,
understanding, applying, analyzing, evaluating, and creating.
Malla Reddy Engineering College Internal
Quality Assurance Cell (IQAC) Bloom’s Taxonomy
Verb Chart
Bloom’s Taxonomy provides a list of action verbs based on each level of understanding. The following is a list of
measurable action verbs that can be used when you are creating your learning objectives.
Remember Understand Apply Analyze Evaluate Create
1 Cite Add Acquire Aanalyze Appraise Abstract
2 Define approximate Aadapt Audit Assess Animate
3 Describe Articulate Allocate Blueprint Compare Arrange
4 Draw associate Apply Breadboard Conclude Assembie
5 Enumerate Characterize Ascertain Break down Contrast Budget
6 Identify Clarify Assign Characterize Counsel Categorize
7 Index Classify Attain Classify Criticize Code
8 Indicate Compare Back up Compare Critique Compile
9 Label Compute Calculate Confirm Defend Compose
10 List Contrast Capture Contrast Determine Construct
11 Match Convert Change Correlate Discriminate Correspond
12 Meet Defend Classify Detect Estimate Create
13 Name Describe Complete Diagnose Evaluate Cultivate
14 Outline Detail Compute Diagram Explain Debug
15 Point Differentiate Construct Differentiate Grade Depict
16 Quote Discuss Customize Discriminate Hire Design
17 Read Distinguish Demonstrate Dissect Interpret Develop
18 Recall Elaborate Derive Distinguish Judge Devise
19 Recite Estimate Determine Document Justify Dictate
20 Recognize Example Diminish Ensure Measure Enhance
21 Record Explain Discover Examine Predict Explain
22 Repeat Express Draw Explain Prescribe Facilitate
23 Reproduce Extend Employ Explore Rank Format
24 Review Extrapolate Examine Figure out Rate Formulate
25 Select Factor Examine File Recommend Generalize
26 State Generalize Explore Group Release Generalize
27 Study Give Expose Identify Select Handle
28 Tabulate Infer Express IIIustrate Summarize Import
29 Trace Interact Factor Infer Support Improve
30 Write Interpolate Figure Interrupt Test Incorporate
31 Interpret Graph Inventory Validate Incorporate
32 Observe IIIustrate Investigate Verify Interface
33 Paraphrase Investigate Layout Join
34 Picture graphically Manipulate Manage Lecture
35 Predict Modify Maximize Model
36 Review Operate Minimize Modify
37 Rewrite Plot Optimize Nework
38 Subtract Practice Order Organize
39 Summarize Predict Outline Outline
40 Translate Prepare Point out Overhaul
41 Visualize Process Prioritize Plan
42 Produce Proofread Portray
43 Project Query Prepare
44 Relate Relate Prescribe
45 Round off Select Produce
46 Show Separate Program
47 Simulate Subcivide Rearrange
48 Sketch Train Reconstruct
49 Solve Transform Reorganize
50 Tabulate Revise
51 Translate Rewrite
52 Use Specify
53 Summarize
FACULTY COURSE COORDINATOR HOD

MALLA REDDY ENGINEERING COLLEGE


LESSON PLAN – THEORY

Programme : B.Tech Year/Semester : II/ I


Subject/ Lab : OOP through Java (C0511) Academic Year : 2023-24
Name of the Faculty : Mr.joel, Asst.Professor-IT Regulation : MR22

*To be filled at the beginning of the semester with Academic Calendar as reference
TLP : Teaching Learning Process , DM : Delivery Method
Hour MODULE-I Object Oriented Planned Actual

Count thinking and Java basics / List of Date & Date & TLP DM Remarks
Experiments Hr. * Hr.

1 Introduction, Need for oop paradigm 14/09/23 1 C&T

2 Summary of oop concepts 15/09/23 1 C&T

3 coping with complexity, abstraction C&T


16/09/23 1
mechanisms

4 A way of viewing world – Agents, C&T


20/09/23 1
responsibility, messages, methods

5 History of Java, Java buzzwords 22/09/23 1 C&T

6 Data types, variables 23/09/23 1 C&T

7 Scope and lifetime of variables 25/09/23 1 C&T

8 Arrays, operators 26/09/23 1 C&T

9 Expressions, control statements 28/09/23 1 C&T

10 Type conversion and casting 29/09/23 1 C&T

11 Simple java program, concepts of 1 C&T


30/09/23
classes, objects

12 Constructors, methods, access 1 C&T


control, this keyword, garbage 4/10/23
collection

13 Overloading methods and 1 C&T


5/10/23
constructors

14 Method binding, inheritance 7/10/23 1 C&T

15 Overriding and exceptions, parameter 1 C&T


10/10/23
passing

16 Recursion 12/10/23 1 C&T

17 nested and inner classes, exploring 1 C&T


13/10/23
String class

Planned Actual
Module II- Inheritance and
Date & Date & TLP DM Remarks
Packages / List of Experiments
Hr. * Hr.

Hierarchical abstractions, Base class 1 C&T


18 16/10/23
object, subclass, subtype

Substitutability, forms of inheritance 1 C&T


19 18/10/23
specialization.
20 Specification, construction 19/10/23 1 C&T

21 Extension, limitation, combination 20/10/23 1 C&T

Benefits of inheritance, costs of 1 C&T


22 21/10/23
inheritance

23 Member access rules, Super uses 30/10/23 1 C&T

24 Using final with inheritance 1/11/23 1 C&T

25 Polymorphism- method overriding 2/11/23 1 C&T

26 Abstract classes, the Object class 3/11/23 1 C&T

Defining, Creating and Accessing a 1 C&T


27 6/11/23
Package,

28 Understanding CLASSPATH 7/11/23 1 C&T

29 Importing packages 8/11/23 1 C&T

Module III - Interfaces and Planned Actual


Exception handling and
Date & Date & TLP DM Remarks
Multithreading / List of
Experiments Hr. * Hr.

Defining an interface, differences C&T


30 9/11/23 1
between classes and interfaces

Implementing interface, applying C&T


31 10/11/23 1
interfaces

variables in interface and extending C&T


32 11/10/23 1
interfaces

33 Exploring java.io 13/10/23 1 C&T

Concepts of exception handling, C&T


34 14/11/23 1
benefits of exception handling

exception hierarchy, usage of try, C&T


35 15/11/23 1
catch, throw, throws and finally,

36 Conduction of Quiz 22/11/23 7 ICT Tools

built in exceptions, creating own C&T


37 24/11/23 1
exception subclasses

38 String handling 28/11/23 1 C&T

39 Exploring java.util 29/11/23 1 C&T

Differences between multithreading 1 C&T


40 30/11/23
and multitasking

Thread life cycle, creating threads, 1 C&T


41 1/12/23
thread priorities
Synchronizing threads, inter thread 1 C&T
42 4/12/23
communication

43 Inter thread communication 5/12/23 1 C&T

44 Thread groups, daemon threads 7/12/23 1 C&T

45 Enumerations, auto-boxing 11/12/23 1 C&T

Planned Actual
Module IV- Event Handling &
Date & Date & TLP DM Remarks
Lists panels / List of Experiments
Hr. * Hr.

46 Events, Event sources 13/12/23 1 C&T

47 Event Listeners 14/12/23 1 C&T

48 Delegation event model 16/12/23 1 C&T

49 Handling mouse and keyboard events 18/12/23 1 C&T

50 Adapter classes 20/12/23 1 C&T

51 Adapter classes 21/12/23 1 C&T

52 The AWT class hierarchy 22/12/23 1 C&T

user interface components- labels, 1 C&T


button, canvas, scrollbars, text
53 27/12/23
components, check box, checkbox
groups, choices

lists panels – scrollpane, dialogs, 1 C&T


54 29/12/23
menubar, graphics

layout manager – layout manager 1 C&T


55 30/12/23
types

56 border, grid, flow 2/01/24 1 C&T

57 card and grid bag 3/01/24 1 C&T

Planned Actual
Module V- Applets / List of TLP DM Remarks
Experiments Date & Date &
Hr. * Hr.

Concepts of Applets, differences 5/01/24


58 1 C&T
between applets and applications

Life cycle of an applet, types of


59 6/01/24 1 C&T
applets,

Creating applets, passing parameters C&T


60 8/01/24 1
to applets.
61 Swing – Introduction 9/01/24 1 C&T

62 Limitations of AWT 10/01/24 1 C&T

63 MVC architectue, 12/01/24 1 C&T

Components, containers, exploring C&T


64 15/01/24 1
swing- JApplet

65 JFrame and JComponent 16/01/24 1 C&T

66 Icons and Labels, text fields, buttons 18/01/24 1 C&T

67 Icons and Labels, text fields, buttons 19/01/24 1 C&T

The JButton class, Check boxes, C&T


68 22/01/24 1
Radio buttons

Combo boxes, Tabbed Panes, Scroll C&T


69 23/01/24 1
Panes, Trees, and Tables.

70 Conduction of Quiz 24/01/24 7 ICT Tools

Content Beyond Syllabus

Signature of Faculty HODs Signature for HODs Signature after


plan approval execution of plan

ACTION TAKEN

Deviation from the plan of Modules:

(If deviation greater than 5-10 %)

HODs instruction to compensate deviations:


Remarks on follow-up for deviation by faculty

Signature of Faculty HOD

Malla Reddy Engineering College


Autonomous
Department of Information Technology

Class Notes
Subject Name: OOPthrough Java Faculty Name: Mr.P.Uday
Module I

C a powerful Programming language:


C is a middle-level programming language developed by Dennis Ritchie during the early 1970s
while working at AT&T Bell Labs in the USA.

# The objective of its development was in the context of the re-design of the UNIX operating
system to enable it to be used on multiple computers.

Earlier the language B suffered from drawbacks as it did not understand data-types
and did not provide the use of “structures”.
These drawbacks became the driving force for Ritchie for development of a new programming
language called C.
It is
 Middle-level language : C combines the features of both high-level and low- level
languages. It can be used for low-level programming, such as scripting for drivers and
kernels and it also supports functions of high-level programming languages, such as
scripting for software applications etc.
 Structured programming language :It allows a complex program to be broken
into simpler programs called “functions”. It also allows free movement of data
across these functions. For this reason it is called as procedure oriented programming
language or function oriented programming language.
 General-purpose programming language: It can efficiently work on any
application domains like enterprise applications, games, graphics, and
applications requiring calculations, etc.
 C language has a rich library which provides a number of built-in functions. It also
offers dynamic memory allocation.

 Various features of C including direct access to machine level hardware APIs,


the presence of C compilers, etc.

Need of C++:
C is a great and practical programming language, but as programs became more
complex, people realized they needed a better way to handle that “complexity”.

Structured programming made it easier for programmers to write somewhat complex programs.
However, as projects became larger, they also became more challenging to handle. To solve this
issue, a new approach called object-oriented programming (OOP) was created. C++, a
programming language, added features that helped programmers understand and manage bigger
programs.

In 1979, Bjarne Stroustrup created C++, in Bell Laboratories,USA. At first, he named it "C with
Classes," but later it was changed to C++. C++ is an extension of the C
language that adds object-oriented features. Since C++ is based on C, it includes all of C's
features, advantages(attributes), and benefits. This is one of the main reasons why C++ became
a successful programming language.

 C++ is a general purpose, structured programming, mid-Level programming,


compiler-based and object-oriented programming language.

The other reason for the need of object oriented programming language is that with the usage of
functions, it allows free movement of data across these functions when global variables are
declared.It raises the concerns of free accessibility(protection) and security. To solve this issue,
object-oriented programming was introduced.

An Object is an real world entity that has state and behaviour. Here, state means data and
behavior means functionality. The data members and member functions are
wrapped into a single unit called an object.

 Object is a collection of data members and member functions that are associated with the
data.

Class in C++ is the building block that leads to Object-Oriented programming.

Features of Object Oriented Programming(OOP):


Object-oriented programming uses objects in programming as Procedure oriented programming
uses functions in programming. Object-oriented programming aims to implement real-world
entities like inheritance, Data hiding, polymorphism, etc. in programming.
The main aim of OOP is to bind together the data and the functions that operate
on them so that no other part of the code can access this data except that
function.

There are some basic concepts that act as the building blocks of OOPs i.e.
1. Class
2. Objects
3. Encapsulation
4. Abstraction
5. Polymorphism
6. Inheritance
Class
The building block of C++ that leads to Object-Oriented programming is a Class. It is a user-
defined data type, which holds its own data members and member functions, which can be
accessed and used by creating an instance of that class. A class is like a blueprint for an object.
For Example: Consider the Class of Cars. There may be many cars with different names and
brands but all of them will share some common properties like all of them will have 4 wheels,
Speed Limit, Mileage range, etc. So here, the Car is the class, and wheels, speed limits, and
mileage are their properties.
 A Class is a user-defined data type that has data members and member functions.
 Data members are the data variables and member functions are the functions used to
manipulate these variables together these data members and member functions define the
properties and behavior of the objects in a Class.
 In the above example of class Car, the data member will be speed limit, mileage, etc and
member functions can apply brakes, increase speed, etc.
We can say that a Class in C++ is a blueprint representing a group of objects which shares
some common properties and behaviors.

Object
An Object is an identifiable entity with some characteristics and behavior. An Object is an
instance of a Class. When a class is defined, no memory is allocated but when it is instantiated
(i.e. an object is created) memory is allocated.

Malla Reddy Engineering College


(Autonomous)
Department of Information Technology

Maisammaguda, Dhulapally (Post via Kompally), Secunderabad – 500 100.


II B. TECH – I Semester (MR22) I MID EXAMNATIONS
Subject: Object Oriented Programming through Java Subject code: C0511
Branch: IT, DS, AIML, IOT, CS
MODULE-I
S.No Question Blooms CO
Taxonomy
level

1 Explain different Object-oriented concepts in java? understanding 1

2 Explain different data types available in java and its sizes Understanding 1
with a sample example program.

3 Develop a java program to explain type conversions. Understanding 1

4 Explain selection statements in detail with example Understanding 1


programs.

5 How to access class data members in C++? Understanding 1

6 Develop a java program to search an element in the array. Applying 1

7 What is an array? Explain in detail about array types in java Remembering 1


with an example program.

8 Explain C++ structure with example? Understanding 1

Module-2

S.No Question Blooms CO


Taxonomy
level
1 Compare and contrast method overloading and overriding Analyzing 2
in java.

2 Discuss the role of abstract class in java. Explain in detail Analyzing 2


with an example program.

3 Justify your answer, why java does not support Multiple Evaluating 2
Inheritance through classes?

4 Write a program to illustrate the usage of the following Understanding 2


methods of StringBufferclass. Explain the output in each
case. Delete(), deleteChatAt(),append(), charAt().

5 Discuss the role of constructor and explain different types Analyzing 2


of constructors available in java.

6 Explain different types of inheritances supported by Java Remembering 2


with example programs.

7 Demonstrate the final keyword usage in java programming Understanding 2


language.

8 What is String in java? Explain different methods in String Understanding 2


Class with an example Program.

Module -3
S.No Question Blooms CO
Taxonomy
level
1 Justify your answer how packages provide abstraction Evaluating 3
with an example program.

2 Develop java program to implement multiple Applying 3

a
inheritance
.
3 Develop a java program for interface to find areas of Applying 3
different shapes.

4 How to define and create a package? Explain it with Analyzing 3


Example?

Malla Reddy Engineering College


(Autonomous)
Department of Information Technology

Maisammaguda, Dhulapally (Post via Kompally), Secunderabad – 500 100.


II B. TECH – I Semester (MR22) II MID EXAMNATIONS
Subject: Object Oriented Programming through Java Subject code: C0511
Branch: IT, DS, AIML, IOT, CS
Module III
Bloom’s
S.No Question Taxonomy CO
Level

What is the difference between an error and an exception? Explain Understanding


different keywords that are available in JAVA for exception handling
1. 3
with an example?

2. How to create user defined exceptions? Explain with an example. Understanding 3

3. Define an exception and explain about checked and unchecked Remember 3


exceptions in Java.

4. Explain about Built in Exceptions in exception handling. Understanding 3

Module IV

Define thread? Explain the lifecycle of thread Remember


1. 4
What are the different ways of creating a thread? Explain with example. Understanding
2. 4
3. Define synchronization in JAVA? Explain with example. Remember 4

Explain about Daemon Thread with example? Applying


4. 4
5. What is Array List? Explain with an example. Understanding 4
6. Explain about LinkedHashset with an example. Applying 4

7. What is Priority Queue? Explain with an example. Understanding 4

What are the methods available in EnumSet? Explain with an example.


8. Understanding 4

Module V

What is an event handling in Java? Explain with Example. Applying


1. 5

2. Develop a java program to demonstrate mouse events. Analyzing 5


3. Explain the methods in Key Listener interface with an Example. Applying 5

4. Explain the java Adapter class with Example. Understanding 5


5. Differentiate between AWT and Swings. Analyzing 5

6 Explain about JFrame class with an example. Understanding 5

7. What are the constructors in BorderLayout class? Explain with example. Understanding 5
8. What is the importance of Swings and explain about JButton class and Remembering 5
its methods?

Signature of Faculty Signature of the HOD


Malla Reddy Engineering College
(Autonomous)
Department of Information Technology

II B. Tech. I SEMESTER (MR22) REGULAR END EXAMINATIONS


Model Question Paper

Bloom’s
Q.No. Questions(Module I) Taxonomy CO
Level
1 Explain in detail about Java Buzzwords Understanding 1
With a suitable example explain the concept of class and object
2 Understanding 1
in C++.
Explain Polymorphism(Compile time and Run time) with
suitable examples in c++
Explain briefly about
3 a) Java data types b) Scope and lifetime of a variable. Understanding 1

4 Design a java program to print the fibonacci series. Applying 1


What is a control statement? Explain various iterative statements
5 Understanding 1
in Java.
a) Distinguish between procedural languages and object
oriented languages.
6 Understanding 1
b) What is OOP? Explain the principles of object
oriented programming
Develop a java program which demonstrates the use of explicit
7 Applying 1
type casting.
Develop a java program to read a number and display whether it is
8 Applying 1
prime or not. Read the numbers using command line arguments.
Develop a java program which demonstrates the use of bitwise
9 Applying 1
operators in java
10 Design a java program to perform matrix multiplication. Applying 1

Bloom’s
Q.No. Questions(Module II) Taxonomy CO
Level
1 Design a java program which demonstrates the use of garbage collector Applying 2
in java
Define polymorphism? Explain how dynamic binding is
2 Understanding 2
implemented in java with an example code.
Design a java program to read a line of integers and display the sum of
3 Applying 2
integers using StringTokenizer class
4 Define class. Explain various types of constructors in Java. Understanding 2
Develop a java program which demonstrates all the uses of
5 Applying 2
super keyword
6 Explain usage of following keywords Understanding 2
a) static b) final c)this
7 Develop a java application to demonstrate method overloading. Applying 2
What is Inheritance? Explain different types of inheritance
8 Understanding 2
supported by java with an example.
9 Develop a java program to implement Stack data structure. Applying 2
Develop a abstract Reservation class which has Reserve as abstract
10 method.skech subclasses like ReserveTrain and ReserveBus classes and Applying 2
implement the same by creating objects.
11 Explain difference between string and string buffer class with suitable
programs
12 What are abstract classes? Give suitable programs
13 Explain method overriding with example
Bloom’s
Q.No. Questions(Module III) Taxonomy CO
Level
1 Define an interface. Explain how an interface is implemented in Java. Understanding 2
2 Define package. Explain the process of creating and importing user Understanding 2
defined packages.
3 What is an abstract class? Illustrate the difference between abstract class Understanding 2
and interface.
4 Demonstrate the usage of various access modifiers in Java Understanding 2
5 Develop a java program to implement multiple inheritance using Applying 2
interfaces.
6 Develop a java program to display the properties of a file using File Applying 2
class of IO package.
7 Design a java program to read the contents of a file and display it on the Applying 2
console.
8 Explain the working of try block, catch block? Distinguish between Understanding 3
throw and throws keyword.
9 Develop a program to illustrate ArrayIndexOutOfBound Exception and Applying 3
Arithematic Exception
10 Design a java program to demonstrate user defined exception. Applying 3
Bloom’s
Q.No. Questions(Module IV) Taxonomy CO
Level
1. Explain in detail about life cycle of thread in Java Understanding 3
2. Design a java program which demonstrates the various ways of Applying 3
creating threads.
3. Explain about the following Understanding 3
a) join() b)isAlive() c)yield() d)resume()
4. a) Compare and contrast between wait and sleep methods Understanding 3
b) Explain the concept of daemon threads.
5. Design a java application which correctly implements producer Applying 3
consumer problem.
6. Illustrate the differences between applet and application and explain Understanding 4
the life cycle of an Applet with an example?.
7. What is event handling? Explain in detail about delegation event model. Understanding 4
8. Develop a java program to demonstrate mouse events. Applying 4
9 a) Develop a login page using AWT controls Applying 4
b) Develop a java applet which displays a welcome message.
10 Design an applet to demonstrate traffic signal. Applying 4
ExplainThread synchronization with example
Bloom’s
Q.No. Question(Module V) Taxonomy CO
Level
1. Illustrate the importance of layout managers in GUI programming. Understanding 5
Explain in detail about flow layout with example.
2. Develop a simple calculator application using grid layout Applying 5
3. Explain in detail about card layout and gridbag layout Understanding 5
4. a) Compare and Contrast between AWT and Swings Understanding 5
b) Explain in detail about containers in swing programming
5. Develop a Java Applet for calculating factorial of a number using Applying 5
JApplet
6. Design a registration page using swing components. Applying 5
7. a) Demonstrate the usage of JButton class with example. Understanding 5
b) Explain the use of checkboxes in Swing Programming
8. Design a java swing application to display the details of a selected Applying 5
radiobutton.
9 Develop a java application to create a frame window that responds to Applying 5
key strokes.
10 Explain about the following Swing components Understanding 5
a) Trees b)Tables

Signature of Faculty HOD


Malla Reddy Engineering
College
(Autonomous)
Department of Information Technology

II B. Tech. I SEMESTER (MR22)


Previous year End Semester Question Papers

You might also like