0% found this document useful (0 votes)
17 views

II-II SEM JAVA PROGRAMMING COURSEFILE(2020-21) (1)

The document outlines the course file for Java Programming (CS405PC) at Brilliant Institute of Engineering & Technology for the academic year 2022-2023. It includes the vision and mission of the department, program educational objectives, outcomes, course objectives, syllabus, instructional learning outcomes, and various assessments and resources. The course aims to equip students with object-oriented programming skills, Java language proficiency, and the ability to develop applications using Java technologies.

Uploaded by

spyxfamily1048
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

II-II SEM JAVA PROGRAMMING COURSEFILE(2020-21) (1)

The document outlines the course file for Java Programming (CS405PC) at Brilliant Institute of Engineering & Technology for the academic year 2022-2023. It includes the vision and mission of the department, program educational objectives, outcomes, course objectives, syllabus, instructional learning outcomes, and various assessments and resources. The course aims to equip students with object-oriented programming skills, Java language proficiency, and the ability to develop applications using Java technologies.

Uploaded by

spyxfamily1048
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 209

JAVA

PROGRAMMING
Mr.J SRIKANTH
Assistant Professor

COURSEFILE (2022-2023)

Department of
Computer Science and Engineering
BRILLIANT INSTITUTE OF ENGINEERING & TECHNOLOGY
(Sponsored by: Brilliant Grammar School Educational Society)
(Approved by AICTE, New Delhi, Affiliated to JNTU-Hyderabad)
Abdullapur (V), Abdullapurmet (M), R.R. Dist – 501505, Telangana, India
CONTENT LIST

Sl.
Content
No.
1. Vision & Mission
2. Program Educational objectives, Program Outcomes, Program Specific Outcomes
3. Syllabus copy
4. Course Objectives & Course Outcomes
5. Instructional Learning Outcomes
6. Course mapping with PEOs and PSO,PO
7. JUNTUH & Department calendar
8. Class Time Tables
9. Individual Time Tables
10. Content beyond Syllabus
11. Gaps Identification
12. Guest Lecture Conducted
13. Micro lecture plan
Unit-wise Short and Long Answer Questions (Minimum 10 from Each unit,
14.
Mapping with BTL and COs)
15. Unit wise Quiz Questions (With Key)
16. Assignment Questions and Mapping with BTL Levels and COs
17. Tutorial Questions and Mapping with BTL and COs
18. References, Websites and E-Links
19. University Question Papers of Previous Years
20. Quality Control Sheets
a. Student List
b. Assignment Test-1 Question paper
c. Mid-1 Question paper, Marks Sheet
d. Slow Learners
e. Time Table of Makeup Classes for Slow Learners
f. Assignment-2 question papers
g. Mid-2 Question paper, Marks Sheet
21 Lecture notes
22 CO’s Attainment (Based on internal and external evaluation)

VISION & MISSION


Vision of The BRIL:

To empower students with professional education using creative & innovative technical practices
of global competence and research aptitude to become competitive engineers with ethical values
and entrepreneurial skills.

Mission of The BRIL:

To impart value based professional education through creative and innovative teaching-learning
process to face the global challenges of the new era technology.

To inculcate research aptitude and to bring out creativity in students by imparting engineering
knowledge imbibing interpersonal skills to promote innovation, research and entrepreneurship.

Vision o
Debouch as a centre of excellence for computer science engineering by imparting social, moral and
ethical values oriented education through advanced pedagogical techniques and produce
technologically and highly competent professionals of global standards with capabilities of solving
challenges of the time through innovative and creative solutions.

Mission
To envision inquisitive-driven advanced knowledge building among students to impart foundational
knowledge of computer science and its applications of all spheres using the state-of-the-art facilities
and software industry-institute interaction.

To advance the department industry collaborations through interaction with professional society
through seminars/workshops/guest lectures and student internship programs.

To nurture students with leadership qualities, communication skills and imbibe qualities to work as a
team member and a leader for the economical and technological development in cutting edge technolo-
gies in national and global arena.

2-PROGRAM EDUCATIONAL OBJECTIVES, PROGRAM


OUTCOMES, PROGRAM SPECIFIC OUTCOMES
Program Educational Objectives (PEOs):

PEO1: To provide graduates the foundational and essential knowledge in mathematics, science, computer
science and engineering and interdisciplinary engineering to emerge as technocrats.

PEO2: To inculcate the capabilities to analyze, design and develop innovative solutions of computer sup-
port systems for benefits of the society, by diligence and teamwork.

PEO3: To drive the graduates towards employment/purse higher studies/turn as entrepreneurs.

Program Outcomes (POs):

PO1: Engineering Knowledge: Apply the knowledge of mathematics, science, engineering fundamentals
and an engineering specialization to the solution of complex engineering problems.

PO2: 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.

PO3: 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.

PO4: Conduct Investigations of Complex Problems: Use research-based knowledge and research
methods including design of experiments, analysis and interpretation of data, and synthesis of the
information to provide valid conclusions.

PO5: 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.

PO6: 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.

PO7: 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.

PO8: Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of
the engineering practice.

PO9: Individual and Team Work: Function effectively as an individual and as a member or leader in
diverse teams, and in multidisciplinary settings.

PO10: 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.
PO11: Project Management and Finance: Demonstrate knowledge and understanding of the engineering
management principles and apply these to one's own work, as a member and leader in a team, to manage
projects and in multidisciplinary environments.

PO12:Life-long Learning: Recognize the need for and have the preparation and ability to engage in
independent and lifelong learning in the broadest context of technological change.

Program Specific Outcomes (PSOs):

PSO1: Foundation on Software Development:


Ability to grasp the software development life cycle of software systems and possess competent
skills and knowledge of software design process

PSO2: Industrial Skills Ability:


Ability to interpret fundamental concepts and methodology of computer systems so that students
can understand the functionality of hardware and software aspects of computer systems

PSO3: Ethical and Social Responsibility:


Communicate effectively in both verbal and written form, will have knowledge of professional and
ethical responsibilities and will show the understanding of impact of engineering solutions on the
society and also will be aware of contemporary issues
3 - SYLLABUS COPY
UNIT - I Object-oriented thinking- A way of viewing world – Agents and Communities, messages and
methods, Responsibilities, Classes and Instances, Class Hierarchies- Inheritance, Method binding,
Overriding and Exceptions, Summary of Object-Oriented concepts. Java buzzwords, An Overview of Java,
Data types, Variables and Arrays, operators, expressions, control statements, Introducing classes, Methods
and Classes, String handling.
Inheritance– Inheritance concept, Inheritance basics, Member access, Constructors, Creating Multilevel
hierarchy, super uses, using final with inheritance, Polymorphism-ad hoc polymorphism, pure
polymorphism, method overriding, abstract classes, Object class, forms of inheritance- specialization,
specification, construction, extension, limitation, combination, benefits of inheritance, costs of inheritance.

UNIT -II Packages- Defining a Package, CLASSPATH, Access protection, importing packages.
Interfaces- defining an interface, implementing interfaces, Nested interfaces, applying interfaces, variables
in interfaces and extending interfaces.
Stream based I/O (java.io) – The Stream classes-Byte streams and Character streams, Reading console
Input and Writing Console Output, File class, Reading and writing Files, Random access file operations,
The Console class, Serialization, Enumerations, auto boxing, generics.

UNIT - III Exception handling - Fundamentals of exception handling, Exception types, Termination or
presumptive models, Uncaught exceptions, using try and catch, multiple catch clauses, nested try
statements, throw, throws and finally, built- in exceptions, creating own exception sub classes.
Multithreading- Differences between thread-based multitasking and process-based multitasking, Java
thread model, creating threads, thread priorities, synchronizing threads, inter thread communication.

UNIT - IV The Collections Framework (java.util)- Collections overview, Collection Interfaces, The
Collection classes- Array List, Linked List, Hash Set, Tree Set, Priority Queue, Array Deque. Accessing a
Collection via an Iterator, Using an Iterator, The For-Each alternative, Map Interfaces and Classes,
Comparators, Collection algorithms, Arrays, The Legacy Classes and Interfaces- Dictionary,
Hashtable,Properties, Stack, Vector More Utility classes, String Tokenizer, Bit Set, Date, Calendar,
Random, Formatter, Scanner

UNIT - V GUI Programming with Swing – Introduction, limitations of AWT, MVC architecture,
components, containers. Understanding Layout Managers, Flow Layout, Border Layout, Grid Layout, Card
Layout, Grid Bag Layout.
Event Handling- The Delegation event model- Events, Event sources, Event Listeners, Event classes,
Handling mouse and keyboard events, Adapter classes, Inner classes, Anonymous Inner classes
. A Simple Swing Application, Applets – Applets and HTML, Security Issues, Applets and Applications,
passing parameters to applets. Creating a Swing Applet, Painting in Swing, A Paint example, Exploring
Swing Controls- JLabel and Image Icon, JText Field, The Swing Buttons- JButton, JToggle Button, JCheck
Box, JRadio Button, JTabbed Pane, JScroll Pane, JList, JCombo Box, Swing Menus, Dialogs.

TEXT BOOKS
1. Java The complete reference, 9th edition, Herbert Schildt, McGraw Hill Education (India) Pvt. Ltd. 2.
Understanding Object-Oriented Programming with Java, updated edition, T. Budd, Pearson Education.

REFERENCE BOOKS
1. An Introduction to programming and OO design using Java, J. Nino and F.A. Hosch, John Wiley &
sons.
2. Introduction to Java programming, Y. Daniel Liang, Pearson Education.
3. Object Oriented Programming through Java, P. Radha Krishna, Universities Press.
4. Programming in Java, S. Malhotra, S. Chudhary, 2nd edition, Oxford Univ. Press.
5. Java Programming and Object oriented Application Development, R. A. Johnson, Cengage Learning.

4 - COURSE OBJECTIVES , COURSE OUTCOMES


Course Objectives:

 To introduce the object oriented programming concepts.


 To understand object oriented programming concepts, and apply them in solving problems.
 To introduce the principles of inheritance and polymorphism; and demonstrate how they relate to
the design of abstract classes
 To introduce the implementation of packages and interfaces
 To introduce the concepts of exception handling and multithreading.
 To introduce the design of Graphical User Interface using applets and swing controls.

Course Outcomes:
 Able to solve real world problems using OOP techniques.
 Able to understand the use of abstract classes.
 Able to solve problems using java collection framework and I/o classes.
 Able to develop multithreaded applications with synchronization.
 Able to develop applets for web applications.
 Able to design GUI based applications

COURSE: JAVA PROGRAMMING _ CS405PC_ Semester04 ( R018)


Subject Code Course Outcomes
CS405PC.1 Able to solve real world problems using OOP techniques
CS405PC.2 Able to understand the use of abstract classes
CS405PC.3 Able to develop multithreaded applications with synchronization
CS405PC.4 Able to solve problems using java collection framework and I/o classes
CS405PC.5 Able to develop applets for web applications and design GUI based appli-
cations

5 - INSTRUCTIONAL LEARNING OUTCOMES


Instructional Learning Outcomes:
Unit-I:
Students gain ability to
1. Explain and apply object oriented concepts
2. Differentiate Procedural and object oriented paradigms
3. Explain features of Java programming language
4. Write simple java stand alone applications

Unit-II
1. Apply the Concepts of inheritance, Polymorphism and Interfaces and Packages
2. Design abstract classes and interfaces and analyze when to use them.
2. Create and access a package.

Unit-III
1. Handle Exceptions and create own exception sub classes.
2. Multithread programming with an ability to synchronize threads.

Unit- IV
1. Use the Collection Frame work in java.
2. File management with a clear understanding of different kinds of input output streams
3. Connecting and querying a database using JDBC

Unit-V
1. Design GUI screens using AWT and Swings
2. Handle different types of events
3. Design Applets

6 - COURSE MAPPING WITH PEOS AND PSO,PO’S


PO’s CO
CO Avera
1 2 3 4 5 6 7 8 9 10 11 12 ge

CS405PC.1 Java Programming


CS405PC.2 Understand the concept of
OOP as well as the purpose and usage
principles of inheritance, polymorphism,
encapsulation and method overloading
CS405PC.3 Identify classes, objects,
members of a class and the relationships
among them needed for a specific prob-
lem.
CS405PC.4 Create Java application pro-
grams using sound OOP practices (e.g.,
interfaces and APIs) and proper program
structuring (e.g., by using access control
identifies, automatic documentation
through comments, error exception han-
dling)
CS405PC.5 Develop programs using the
Java Collection API as well as the Java
standard class library.
CS405PC.6 Develop the skills to apply
java programming in problem solving
CS405PC.7 Should get the ability to ex-
tend his/her knowledge of java program-
ming further on his her own.
PO Average

7 - JUNTUH & DEPARTMENT CALENDAR


8 - CLASS TIME TABLES
13 - MICRO LECTURE PLAN
Unit Topic(s) No.Of Cumulative Teaching- Resources
Periods no.of periods Methodology(c T1,R1,OR1,
halk and OR2..
Talk,PPTs,Ve-
dio Lecutres
etc)
1 Introduction 1 1 chalk and Talk T2
A way of viewing world – 1 2 chalk and Talk T2
1 Agents and Communities,
messages and methods, 1 3 chalk and Talk T2
Responsibilities, Classes
1 and Instances.
Class Hierarchies- 1 4 chalk and Talk T1
Inheritance, Method
binding, Overriding and
Exceptions, Summary of
1 Object-Oriented concepts.
Java buzzwords,control 1 5 chalk and Talk T1
1 statements
Introducing classes, 1 6 chalk and Talk T1
Methods and Classes,
1 String handling.
1 Example programs 1 7 chalk and Talk T1
Inheritance– Inheritance 1 8 chalk and Talk T1
concept, Inheritance basics,
1 Member access
Inheritance– Inheritance 1 9 chalk and Talk T1
concept, Inheritance basics,
1 Member access
Constructors, Creating 1 10 chalk and Talk T1
Multilevel hierarchy, super
uses, using final with
1 inheritance,
Constructors, Creating 1 11 chalk and Talk T1
Multilevel hierarchy, super
uses, using final with
1 inheritance,
1 Example programs 1 12 chalk and Talk T1
Polymorphism-ad hoc 1 13 chalk and Talk T1
polymorphism, pure
polymorphism, method
1 overriding
abstract classes, Object 1 14 chalk and Talk T1
1 class, forms of inheritance
1 Example programs 1 15 chalk and Talk T1
Inheritance-specialization, 1 16 chalk and Talk T1
specification, construction,
1 extension
limitation, combination, 1 17 chalk and Talk T1
benefits of inheritance,
1 costs of inheritance.
1 Test 1 18 - -
Packages-Defining a 1 19 chalk and Talk T1
2 Package, CLASSPATH
2 Access protection 1 20 chalk and Talk T1
importing 1 21 chalk and Talk T1
2 packages,Examples
Interfaces- defining an 1 22 chalk and Talk T1
interface, implementing
2 interfaces
Nested interfaces, applying 1 23 chalk and Talk T1
2 interfaces
2 applying interfaces 1 24 chalk and Talk T1
2 variables in interfaces 1 25 chalk and Talk T1
2 extending interfaces 1 26 chalk and Talk T1
2 Examples 1 27 chalk and Talk T1
The Stream classes-Byte 1 28 chalk and Talk T1
streams and Character
2 streams
Reading console Input and 1 29 chalk and Talk T1
2 Writing Console Output
Reading console Input and 1 30 chalk and Talk T1
2 Writing Console Output
File class, Reading and 1 31 chalk and Talk T1
2 writing Files
Random access file 1 32 chalk and Talk T1
operations, The Console
2 class
Random access file 1 33 chalk and Talk T1
operations, The Console
2 class
2 Serialization, Enumerations 1 34 chalk and Talk T1
2 auto boxing, generics 1 35 chalk and Talk T1
2 auto boxing, generics 1 36 chalk and Talk T1
2 Test 1 37 - -
Exception handling - 1 38 chalk and T1
Fundamentals of exception Talk&Vedio
3 handling,Exception types Lectures
Termination or resumptive 1 39 chalk and T1
models, Uncaught Talk&Vedio
exceptions, using try and Lectures
catch, multiple catch
3 clauses
1 40 chalk and T1&OR3
nested try statements, Talk&Vedio
3 throw, throws and finally Lectures
built- in exceptions, 1 41 chalk and T1&OR3
creating own exception sub Talk&Vedio
3 classes Lectures
3 Multithreading- Differences 1 42 chalk and T1&OR3
between thread-based Talk&Vedio
multitasking and process- Lectures
based multitasking, Java
thread model
1 43 chalk and T1&OR3
creating threads, thread Talk&Vedio
3 priorities Lectures
1 44 chalk and T1&OR3
creating threads, thread Talk&Vedio
3 priorities Lectures
1 45 chalk and T1&OR3
Talk&Vedio
3 synchronizing threads Lectures
1 46 chalk and T1&OR3
Talk&Vedio
3 synchronizing threads Lectures
1 47 chalk and T1&OR3
Talk&Vedio
3 inter thread communication Lectures
3 TEST 1 48 - -
(java.util)- Collections 49 chalk and T1
overview, Collection Talk&PPT
4 Interfaces
The Collection classes- 1 50 chalk and T1
4 Array List, Linked List Talk&PPT
1 51 chalk and T1
4 Hash Set, Tree Set Talk&PPT
Priority Queue,Array 1 52 chalk and T1
4 Deque Talk&PPT
Accessing a Collection via 1 53 chalk and T1
4 an Iterator Talk&PPT
Using an Iterator, The For- 1 54 chalk and T1
4 Each alternative Talk&PPT
1 55 chalk and T1
4 Map Interfaces and Classes Talk&PPT
1 56 chalk and T1
4 Comparators Talk&PPT
Collection algorithms, 1 57 chalk and T1
4 Arrays Talk&PPT
The Legacy Classes and 1 58 chalk and T1
4 Interfaces- Dictionary Talk&PPT
The Legacy Classes and 1 59 chalk and T1
4 Interfaces- Dictionary Talk&PPT
1 60 chalk and T1
4 Hashtable,Properties, Stack Talk&PPT
Vector More Utility 1 61 chalk and T1
4 classes,String Tokenizer Talk&PPT
Vector More Utility 1 62 chalk and T1
4 classes,String Tokenizer Talk&PPT
Bit Set,Date, Calendar, 1 63 chalk and T1
4 Random Talk&PPT
1 64 chalk and T1
4 Formatter, Scanner Talk&PPT
1 65 chalk and T1
4 Formatter, Scanner Talk&PPT
4 Test 1 66 - -
GUI Programming with 1 67 PPT &Vedio T1&OR3
Swing – Introduction, Lectures
limitations of AWT, MVC
5 architecture
1 68 PPT &Vedio T1&OR3
5 components, containers Lectures
Understanding Layout 1 69 PPT &Vedio T1&OR3
Managers, Flow Layout, Lectures
5 Border Layout
Grid Layout, Card Layout, 1 70 PPT &Vedio T1&OR3
5 Grid Bag Layout Lectures
Event Handling- The 1 71 PPT &Vedio T1&OR3
Delegation event model- Lectures
5 Events, Event sources
Event Listeners, Event 1 72 PPT &Vedio T1&OR3
classes, Handling mouse Lectures
5 and keyboard events
Adapter classes, Inner 1 73 PPT &Vedio T1&OR3
classes, Anonymous Inner Lectures
5 classes
Applets – Applets and 1 74 PPT &Vedio T1&OR3
HTML, Security Issues, Lectures
Applets and Applications,
passing parameters to
5 applets
Creating a Swing Applet, 1 75 PPT &Vedio T1&OR3
Painting in Swing, A Paint Lectures
5 example
Exploring Swing Controls- 1 76 PPT &Vedio T1&OR3
JLabel and Image Icon, Lectures
5 JText Field
The Swing Buttons- 1 77 PPT &Vedio T1&OR3
JButton, JToggle Button, Lectures
5 JCheck Box
1 78 PPT &Vedio T1&OR3
5 JTabbed Pane, JScroll Pane Lectures
1 79 PPT &Vedio T1&OR3
5 JList, JCombo Box Lectures
1 80 PPT &Vedio T1&OR3
5 Swing Menus, Dialogs Lectures
1 81 PPT &Vedio T1&OR3
5 Examples Lectures
5 Test 1 82 - -
14 - Unit-wise Short and Long Answer Questions (Minimum 10 from
Each unit, Mapping with BTL and COs)
PART – A (Short Answer Questions)
S. No Question Blooms Tax-
onomy Level
UNIT - I
1 Define OOP? Understand
2 Distinguish between procedural language and OOPs? Understand
3 Define Encapsulation? Understand
4 Define Inheritance? Understand
5 Define Polymorphism? Understand
6 List advantages of OOP? Understand
7 List disadvantages of OOP? Understand
8 Write history of java? Knowledge
9 Describe a data type? Understand
10 Describe a constant? Understand
11 Describe scope and life time of variables? Understand
12 List types of operators? Understand
13 Define type conversion? Understand
14 Define type casting? Understand
15 Define enumerated types? Understand
16 Define an array? Understand
17 Define this reference? Understand
18 Define constructor? Understand
19 Define recursion? Understand
20 Define garbage collection? Understand
UNIT – II
1 Define Inheritance? Understand
2 List types of inheritances in java? Understand
3 Write Member access rules Remember
4 Write Uses of ‘Super’ keyword Understand
5 Write using ‘final’ keyword with inheritance Understand
6 Write about Object class Understand
7 Define abstract classes? Understand
8 Define polymorphism? Understand
9 Define dynamic binding? Understand
10 Define method overriding? Understand
11 Difference between interfaces vs. Abstract classes Understand
12 Define interface? Understand
13 Define inner classes? Understand
14 Define static inner classes? Understand
15 Define a package? Understand
16 Write creating, importing packages? Understand
17 Define abstract methods? Understand
18 Define CLASSPATH? Understand
19 List advantages of inheritance? Understand
20 Write implementing an interface Understand

UNIT - III
1 Define Exception? Understand
2 Distinguish between exception and error? Understand
3 Write benefits of exception handling Understand
4 Write the classification of exceptions Understand
5 Define checked exceptions? Understand
6 Define unchecked exceptions? Understand
7 Define built in exceptions? Understand
8 Write the usage of try and catch Understand
9 Write the usage of throw, throws and finally Understand
10 Distinguish between throw and throws? Understand
11 Distinguish between process and thread? Understand
12 Write thread states Understand
13 Write creation of thread? Understand
14 Define producer consumer problem? Understand
15 Define inter-thread communication? Understand
16 Write How threads are synchronized? Understand
17 Write thread priorities Understand
18 How many ways can thread be Created? Understand
19 Write the alive() and join() method Understand
20 Write thread class implements Runnable interface Understand
UNIT – IV
1 Define collections? Understand
2 Define Java collection Frame work. Understand
3 Define Array List with syntax Understand
4 Define Vector with syntax. Understand
5 Define hash table with syntax. Understand
6 Define stack with syntax. Understand
7 Define enumeration with syntax. Understand
8 Write Iterator. Understand
9 Write the function of stringTokenizer. Understand
10 Define random class. Understand
11 Define Scanner class. Understand
12 Define Calendar class. Understand
13 Define Properties class Understand
14 Define Stream? Understand
15 Define byte stream? Understand
16 Define character stream? Understand
17 Define text input/output file? Understand
18 Define Map Interface. Understand
19 List legacy classes in CFM. Understand
20 Define random access file? Understand
UNIT - V
1 Define AWT class hierarchy? Understand
2 Distinguish between swings Vs AWT? Understand
3 Write hierarchy for swing? Understand
4 Define components? Understand
5 Define containers? Understand
6 Define JFrame, JApplet, JDialog and Jpanel? Understand
7 Define some of swing components? Understand
8 Define Jbutton, JLabel, JTextField and JtextArea? Understand
9 Define Layout management? Knowledge
10 List Layout manager types – border and grid flow? Understand
11 Write Events, Event sources, Event classes Understand
12 Write Event Listeners Understand
13 Describe the relationship between Event sources and Listeners? Understand
14 Define Delegation event model? Knowledge
15 Describe events for handling a button click? Understand
16 Describe events for handling mouse events? Understand
17 Define adapter class? Knowledge
18 Distinguish between applet and application? Understand
19 Write applet life cycle Understand
20 Describe applet security issues? Understand

PART – B (Long Answer Questions)


S. No Question Blooms
Taxonomy Level
UNIT – I
1 Describe the characteristics of object oriented programming concepts? Understand
2 Describe the features (buzzwords) of Java Programming language? Understand
3 Write the Differences between Java and C++. Understand
4 Write Java is a pure object oriented programming language Understand
5 Distinguish between applications and applets in Java? Understand
6 Write about this reference. Understand
7 Write about the method overloading with an example. Understand
8 Write about the constructor overloading with an example. Understand
9 Write the concept of arrays with an example. Understand
10 Write about string class with an example. Understand
11 Write about the console input and output with an example. Apply
12 Write about simple stand alone programs. Apply
13 Write about conditional statements. Understand
14 Write about loops with an example. Understand
15 Write about the break and continue statements with an example. Understand
16 Write about the operator hierarchy with an example. Understand
17 Write about all the operators in java with an example. Understand
18 Define static field? Write with an example. Knowledge

19 Define static method? Write with an example. Knowledge

20 Define type conversion, type casting with an example? Knowledge

UNIT – II
1 Define Inheritance? Discuss its uses and Hierarchical abstractions? Knowledge
2 List types of inheritances in java? Write each of them in detail. Understand
3 Write about Object class in detail Understand
4 Write Uses of ‘Super’ keyword , discuss accessing the member of a Understand
super class
S. No Question Blooms
Taxonomy Level

5 Define package? Discuss its advantages? Knowledge


6 Write different Types of Packages? Understand
7 Define dynamic binding? Write with an example? Knowledge

8 Define method overriding? Write with an example? Knowledge

9 Define Abstract classes? Write with an example? Knowledge

10 Define interface? Write with an example? Knowledge

11 Define inner classes? Write with an example? Knowledge

12 Write in detail about creating , importing packages Understand


13 Write how packages are accessed Understand
14 Write extending interfaces with an example Understand
15 Define interface? Write Differences between classes and interfaces? Knowledge
16 Write final classes , methods with an example Understand
17 Write inheritance with an example Understand
18 Write how to prevent inheritance Understand
19 Write Member access rules with an example Understand
20 Write working procedure of CLASSPATH Understand
UNIT – III
1 Write about exception handling mechanisms Understand
2 Write try, catch , and finally with an example Understand
3 Define throw keyword? Write with an example Understand
4 Define throws keyword? Write with an example Understand
5 Write a program to implement built in exceptions? Apply
6 Write creation of thread Understand
7 Write with an example how java performs thread synchronization? Apply
8 Write producer consumer problem with an example Apply
9 Write about multithreading Understand
10 Write the life cycle of a thread Understand
UNIT – IV
1 Write the Java Collection frame work with an example. Understand
2 Write ArrayList with an example. Remember
3 Write Vector with an example. Remember
4 Write hash table with an example. Remember
5 Write stack with an example. Remember
6 Write enumeration with an example. Remember
7 Write iterator with an example. Remember
8 Write String Tokenizer with an example. Remember
9 Write Random with an example. Remember
S. No Question Blooms
Taxonomy Level
10 Write Scanner class with an example. Remember
11 Write Calender class with an example. Remember
12 Write Properties class with an example. Remember
13 Write text input/output file operations. Remember
14 Write binary input/output file operations. Remember
15 Write random access file operations. Remember
16 Write File management using File class. Remember
17 Write about Legacy classes in detail Understand
18 Write Map interface Understand
19 Write a simple program how to implement double linked list using CFM Apply

20 Write how tree traversal can be implemented using CGM Apply


UNIT – V
1 Write in detail about hierarchy for swing? Understand
2 Write in detail about hierarchy for awt? Understand
3 Write in detail about Layout management? Understand
4 Write a program for handling a button clicks? Understand
5 Write a program for handling mouse events? Understand
6 Write in detail about Events, Event sources and Event classes Apply
7 Write in detail about Event sources and Listeners Apply
8 Write program for simple applet? Apply
9 Write a program for passing parameters to applet? Apply
10 Write a program to C a factorial of a number using swing Apply
components?
11 Write a program to C a factorial of a number using awt components? Apply

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 24
15 - UNIT WISE QUIZ QUESTIONS (WITH KEY)

Unit-1(10Questions)
Answer all Questions 10 X 0.5 = 5
Part-A

1 Which of the following is not a key component of Object Oriented Programming? [D]
A Inheritance B Encapsulation C Polymorphism D Parallelism
2 Which of these is TRUE of the relationship between object and classes? [C]
A class is an An object is the An object is an An Object is the
A instance of an B ancestor of its C instance of a D descendant of its
object subclass class super class
Which operator is used by java runtime implementations to free the memory of object when it is
3 [D]
no longer needed
A Delete B free C new D None of these
4 The reference of an object is created using -------keyword [A]
A This B static C new D class
5 Which of these keywords is used to refer to member of base class from subclass? [B]
A Upper B super C this D that
6 Which of these keywords is used to prevent content of a variable from being modified? [A]
A Final B static C const D abstract
7 ----is the process of using same name for two or more functions [ D ]
Method Constructor Constructor Method
A B C D
Overriding overloading overriding overloading
8 Which of these have highest precedence [A]
A () B ++ C * D >>
9 -----is used to find length of an array [ A]
A Length B length() C sizeof() D None of these
10 What is the process of defining a method in terms of itself that is a method that calls itself? [D]
A Polymorphism B Abstraction C Encapsulation D Recursion

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 25
Unit-2(10Questions)
Answer all Questions 10 X 0.5 = 5
Part-A

1 Which of these can be used to fully abstract a class from its implementation? [C]
None of the
A Objects B Packages C Interfaces D
Mentioned
2 Which of these keywords is used by a class to use an interface defined previously? [C]
A Import B Import C implements D implements
3 Which one is correct declaration for implementing two interfaces? [A]
class C impleme class C implem
class C impleme None of the
A B nts A, impleme C ents A extends D
nts A, B Mentioned
nts B B
Which of this access specifies can be used for a class so that its members can be accessed
4 [ D]
by a different class in the same package?
All of the
A Public B protected C No modifier D
Mentioned
5 Which of the following is correct way of importing an entire package ‘pkg’? [ D]
A Import pkg. B import pkg. C Import pkg.* D import pkg.*
6 Which of the following package stores all the standard java classes? [C]
A Lang B util C java D io
7 The first statement in java source file [ B]
package
A import statement B C main statement D try{}catch{}
statement
8 Which of these class is not related to input and output stream in terms of functioning? [ A]
A File B InputStream C Reader D OutputStream
9 Which of these interface is not a member of java.io package [ C]
A DataInput B ObjectInput C ObjectFilter D FileFilter
10 Which of these is a method to clear all the data present in output buffers? [ C]
A clear() B fflush() C flush() D close()

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 26
Unit-3(10 Questions)

Answer all Questions 10 X 0.5 = 5


Part-A

1 Which of these keywords is not a part of exception handling? [ D]


A Try B catch C finally D thrown
2 Which of these keywords is used to manually throw an exception? [ C]
A Try B finally C throw D catch
3 Which part of code gets executed whether exception is caught or not? [ A]
A Finally B try C catch D throw
4 Which of these is a super class of all exceptional type classes? [ C]
RuntimeExcepti
A String B C Throwable D Cacheable
ons
5 Which of these methods is used to print stack trace? [ B]
obtainStackTrace printStackTrace( displayStackTra
A B C getStackTrace() D
() ) ce()
6 Which of these method of Thread class is used to find out the priority given to a thread? [ C]
getThreadPriorit
A get() B ThreadPriority() C getPriority() D
y()
7 Which of these method of Thread class is used to Suspend a thread for a period of time? [A]
A sleep() B terminate() C suspend() D stop()
Which function of pre defined class Thread is used to check weather current thread being
8 [A]
checked is still running?
A isAlive() B Join() C isRunning() D Alive()

9 What is the name of the method used to start a thread execution? [B]

A init(); B start(); C run(); D resume();


10 Thread priority in Java is? [A]
A Integer B Float C Double D long

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 27
Unit-4 (10 Questions)
Answer all Questions 10 X 0.5 = 5
Part-A

1 Which of these standard collection classes implements a dynamic array? [ C]


A AbstractList B LinkedList C ArrayList D AbstractSet
2 Which of the below does not implement Map interface? [ D ]
A HashMap B Hashtable C EnumMap D Vector
3 If two threads access the same hashmap at the same time, what would happen? [ A ]
ConcurrentModif NullPointerExce ClassNotFound RuntimeExcepti
A B C D
icationException ption Exception on
4 How to sort elements of ArrayList? [ B ]
Collection.sort(li Collections.sort(l Sorter.sortAsc(li
A B C listObj.sort(); D
stObj); istObj); stObj);
5 Which class provides thread safe implementation of List? [ B]
CopyOnWriteAr
A ArrayList B C HashList D List
rayList
6 What is Collection in Java? [ A]
A group of A group of A group of None of the
A B C D
objects classes interfaces mentioned
7 Which of these methods can be used to move to next element in a collection? [ A ]
A next() B move() C shuffle() D hasNext()
8 What is the correct method used to insert and delete items from the queue? [ B ]
enqueue and enqueue and
A push and pop B C D add and remove
dequeue peek
9 Which of these is an incorrect form of using method max() to obtain a maximum element? [ C ]
max(Collection
max(Collection max(Comparato
A B c, Comparator C D max(List c)
c) r comp)
comp)
10 Which of these methods can convert an object into a List? [ C ]
A SetList() B ConvertList() C singletonList() D CopyList()

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 28
Unit-5 (10 Questions)

Answer all Questions 10 X 0.5 = 5


Part-A

Which is the container that doesn't contain title bar and MenuBars but it can have other
1 [C]
components like button, textfield etc?
A Window B Frame C Panel D Container
2 Give the abbreviation of AWT? [B]
Applet Abstract Absolute
None of the
A Windowing B Windowing C Windowing D
above
Toolkit Toolkit Toolkit
3 Which object can be constructed to show any number of choices in the visible window? [ C ]
A Labels B Choice C List D Checkbox
4 Which of these functions is called to display the output of an applet? [ B ]
A display() B paint() C displayApplet() D PrintApplet()
5 Which of these methods can be used to output a string in an applet? [ C ]
A display() B print() C drawString() D transient()
Which of these packages contains all the classes and methods required for even handling in
6 [ D]
Java?
A java.applet B java.awt C java.event D java.awt.event
7 Which of these methods are used to register a mouse motion listener? [C]
addMouseListen addMouseMotio eventMouseMot
A addMouse() B C D
er() nListner() ionListener()
8 Which of these events is generated when a button is pressed? [ A]
AdjustmentEve
A ActionEvent B KeyEvent C WindowEvent D
nt
9 Which of these events is generated when the size of an event is changed? [A]
A ComponentEvent B ContainerEvent C FocusEvent D InputEvent
10 Which of these events is generated when computer gains or loses input focus? [ C ]
A ComponentEvent B ContainerEvent C FocusEvent D InputEvent

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 29
Unit-1 (10 Questions)
Part-B
Fill in the Blanks
1. Constructor is a method having same name as its class name.
2. Java compiler translated the source code into bytecode

3. Automatic deletion of already allocated but unused memory is called garbagecollection


4. Each and every class in java is inherited from Object class
5. javac filename.java command used to compile java program.

6. charAt() method of String class is used to obtain character at specified index

7. main () method used to accept command line arguments in java.

8. If there is an abstract method in a class then,Class must be abstract class.


OuterClass.InnerClass innerObject = outerObject.new InnerClass(); is the syntax to create object of
9.
the inner class?

10. final keyword used to prevent inheritance in java.

Unit-2 (10 Questions)


Part-B
Fill in the Blanks
1 Public access specifiers can be used for an interface
The variable in interface is public static final
2
3 package keyword is used to define packages in Java.

4 package packagename.subpackagename is the syntax to create subpackage in java.


print() and write( ) method is used for writing bytes to an outputstream?
5
Java.net package contains classes and interfaces for networking.
6
Command used to compile package congaing java source code is javac –d . filename.java
7
8 Converting an object of a wrapper type to its corresponding primitive value is called unboxing
Serialization is a process of writing the state of an object to a byte stream.
9
10 syntax to declare enum constant in java is enum enumname{ constants….}

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 30
Unit-3 (10 Questions)
Part-B
Fill in the Blanks
1. Exception class is used to define exceptions.
2. A single try block must be followed by finally&catch

3. ArithmeticException handles the divide by zero error exception.


4. Exception class is available in java.lang pacakge
5. throw keyword is used to generate an exception explicitly.
6. Thread scheduler decides thread priority.
7. Synchronized keyword is used to implement synchronization.
8. The method used to wakes up all the threads is notifyAll()
9. DaemonThread does not prevent JVM from terminating.
10. Maximum Thread priority in java is 10

Unit-4 (10 Questions)


Part-B
Fill in the Blanks
1. Collection interface declares core method that all collections will have.

2. The interface must contain a unique element is java.util.Set or Set


3. shuffle() methods can randomize all elements in a list.
4. Java.util.Map or Map interface provides the capability to store objects using a key-value pair.
5. The interface is used to traverse a list in both forward and backward direction is ListIterator
6. The method is used to calculate number of bits required to hold the BitSet object length()
7. before() is a method of class Date which is used to search whether object contains a date before the
specified date.
8. Java.util.Random class is used to generate random number.
9. The return type of Math.random() method is Double
10. nextBoolean() method is used to generate boolean random values in java

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 31
Unit-5 (10 Questions)
Part-B
Fill in the Blanks
1. Method used to register a keyboard event listener is addKeyListener()

2. Event class is defined in java.util library


3. getPoint( ) method used to obtain the coordinates of a mouse.
4. Applet is a superclass of all Adapter classes.
5. java.awt.Graphics class provides many methods for graphics programming
6. The Swing Component classes that are used in Encapsulates a mutually exclusive set of buttons is
ButtonGroup
7. Swing components are available in javax.swing package
8. java.applet.Applet, the default layout manager is FlowLayout.
9. Passive controls that do not support any interaction with the user is Labels
10. Choiceclass is used to create a pop-up list of items from which the user may choose

16 - ASSIGNMENT QUESTIONS AND MAPPING WITH BTL LEVELS


AND COS

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 32
Assignment-1

1. Differentiate between procedural and object oriented languages


2. Write a program that finds the largest prime number that is less than a specified value.
3. Write a Java Program to represent bank account containing Account number account name and balance
and methods as Deposit and withdraw.
4. Write a Java Program to Sort a given list of names in ascending order.
5. Write a Java Program to check whether a String is palindrome or not.
6. Write a Java Program to Count number of words in a given text.
7. Write a Java Program to demonstrate Narrowing conversion.
8. Write a Java Program to demonstrate Constructor overloading.
9. Write a Java Program to demonstrate Constructor chaining.
10. Write a Java Program to demonstrate String buffer class methods.

Assignment-2
1. Write a Java Program to demonstrate Method overriding.
2. Write a Java Program demonstrate the Use of “super” keyword.
3. Write a Java Program to create Geometric shape interface with methods area( ) and perimeter( ) for
classes triangle ,rectangle and circle. \
4. Write a Java Program to demonstrate Packages containing package name as “sortapp” a in which de-
clare an interface “sortInterface” with method sort() whose return type and parameter type should be
void and empty define “subsortapp “ as subpackage of “sortapp” package in which define a class.
5. Write a Java Program to Sort a given list of names in ascending order.
6. Write a Java Program to represent bank account containing Account number account name and balance
and methods as Deposit and withdraw.
7. Write a Java Program to demonstrate Single inheritance.
8. Write a Java Program to demonstrate Static keyword.
9. Design and develop a java program to show abstract methods

Assignment-3
1. Write a Java Program Method to throw “insufficient fund exception” in withdraw method of bank ac-
count class.
2. Write a Java Program to define two threads such that one thread prints even numbers and another
thread prints odd numbers.
3. Write a Java Program to demonstrate Synchronization concept.
4. Design and develop a java program to create three threads the first thread prints ‘good morning’ for
every one second ,the second thread prints ‘hello!’ for every 2 seconds and the third thread prints ‘wel-
come’ for every three seconds.
5. Write a Java Program to demonstrate Event handling.
6. Write a Java Program to demonstrate Try-catch-finally all in one program.
7. Design and develop a java program for creating our own Exception class. In this the details of account
number, customer name and balance amount in the form of 3arrays the in main() method we display
these details using for loop. at this time we check if any account balance is less than 1000/- the MyEx-
ception is raised and a message is displayed like’ balance is less than 1000/-“.

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 33
Assignment-4
1. Design and develop a java program that reads a filename and displays the file on screen with the line
number before each line
2. Design and develop a java program that reads a filename from keyboard and display the number of
characters, lines, and words in the file.
3. Design and develop a java program that reads a filename from the user that displays information
about whether the file exists\readable\writable\type of file and length of file.
4. Design and develop a java program to show all the stack operations.
5 Illustrate Vector and Hashtable using a program.

Assignment-5
1. Write a Java Program to demonstrate Choice.
2. Write a Java Program to demonstrate Menu Bar.
3. Design and develop a java program to create an applet and display a simple message like “Hello!
Welcome to Applet Programming”.
4. Write a java program that simulates a traffic light. The program lets the user select one of three lights:
red, yellow, or green. When a radio button is selected, the light is turned on, and only one light can be on
at a time No light is on when the program starts.
5. Write a Java program that allows the user to draw lines, rectangles and ovals.
6. Design and develop a java program to show the use Calendar class
7. 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.
8. Write a program that creates a user interface to perform integer divisions. The user enters two num-
bers in the textfields, Num1 and Num2. The division of Num1 and Num2 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
NumberFormatException. If Num2 were Zero, the program would throw an ArithmeticException Dis-
play the exception in a message dialog box.

17 - Tutorial Questions and Mapping with BTL and Cos

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 34
Tutorial-1
1. Write a Java Program to print prime numbers up to a given number.
2. Write a Java Program To print Fibonacci sequence up to a given number.
3. Write a Java Program to Overload the method deposit ( ) in bank account class containing Account
number account name and balance .

Tutorial-2
1. Write a Java Program to demonstrate Widening conversion.
2. Write a Java Program to demonstrate Method chaining.
3. Write a Java Program to demonstrate String tokenizer class methods.

Tutorial-3
1. Write a Java Program to demonstrate Dynamic method dispatch (class program).
2. Write a Java Program to check whether a String is palindrome or not.
3. Write a Java Program to Count number of words in a given text.
4. Write a Java Program To print Fibonacci sequence up to a given number.
5. Write a Java Program to demonstrate Final keyword.
6. Design and develop how to create a package and how to import the packages in java.

Tutorial-4
1. Write a Java Program to demonstrate Thread priority.
2. Write a Java Program to simulate a simple calculator
3. Write a Java Program to demonstrate Thread priority.

Tutorial-5
1. Design and develop a java program to how to handle ArithmeticException and ArrayIndexOutOf-
BoundsException by use try, catch and finally blocks.
2. Design and develop a java program to create three threads the first thread prints ‘good morning’ for
every one second ,the second thread prints ‘hello!’ for every 2 seconds and the third thread prints ‘wel-
come’ for every three seconds
3. Design and develop a java program to show the use of throw keyword for throwing NullPointerExcep-
tion.

Tutorial-6
1. Design and develop a java program that reads a filename and displays the file on screen.
2. Design and develop a java program that reads a filename from keyboard and display the number of
characters in the file.
3. Write a java program to illustrate Stack class.

Tutorial-7
1. Write a Java Program to demonstrate List.
2. Write a Java Program to demonstrate Checkbox.
3. Write a java program to demonstrate passing parameters to Applets.
4. Develop an applet that receives an integer in one text field, and computes its factorial Value and returns
it in another text field, when the button named “Compute” is clicked.

Tutorial-8

1. What is a Borderlayout manager? Write a java program to try out border

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 35
2. Layout manager.
3. What is Mouse listener interface? Explain any four Mouse listener interface
methods.
4. What is a JRadiobutton and Write any three constructors.
5. Create a JApplet that displays two JRadiobuttons and a JTextField and whenever a
radiobutton is clicked, its text is displayed in TextField.

Tutorial -9
1. Design and develop a java program to demonstrate the creation of thread groups.
2. Design and develop a java program to create multiple threads and make the threads to act on a single
object using Synchronization block .
3. Design and develop a java program to show how to handle checked exceptions.
4. Design and develop a java program to demonstrate on inter-thread communication for producer-con-
sumer problem.
5. Write a Java program for handling mouse events

18 - References, Websites and E-Links

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 36
1. Java The complete reference, 9th edition, Herbert Schildt, McGraw Hill Education (India) Pvt. Ltd. 2. Un-
derstanding Object-Oriented Programming with Java, updated edition, T. Budd, Pearson Education.

1. An Introduction to programming and OO design using Java, J. Nino and F.A. Hosch, John Wiley & sons.

2. Introduction to Java programming, Y. Daniel Liang, Pearson Education.

3. Object Oriented Programming through Java, P. Radha Krishna, Universities Press.

4. Programming in Java, S. Malhotra, S. Chudhary, 2nd edition, Oxford Univ. Press.

5. Java Programming and Object oriented Application Development, R. A. Johnson, Cengage Learning.

WEBSITES AND ELINKS:

1. https://www.oracle.com/technetwork/java/oo-140949.html
2. https://www.ibm.com/developerworks/java/tutorials/j-introtojava1/index.html
3. http://www.nptelvideos.com/java/java_video_lectures_tutorials.php?pn=1#
4. https://www.w3resource.com/java-tutorial/java-object-oriented-programming.php
5. https://www.tutorialspoint.com/java/

https://www

.guru99.com/java-oops-concept.html

19 - University Question Papers of Previous Years

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 37
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 38
20 - Quality Control Sheets
a) Student List:

BRILLIANT INSTITUTE OF ENGINEERING & TECHNOLOGY


STUDENTS ROLL LIST
II-II B.TECH CSE 2022-23
S.No Hall Ticket No Name of the Candidate
1 21QA1A0501 KUCHULA AKHILA
2 21QA1A0502 ACHINI KEERTHANA
3 21QA1A0503 ADNAN AHMED
4 21QA1A0504 AKKENAPALLY UDAY

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 39
5 21QA1A0505 AMARAGANI GANESH
6 21QA1A0506 AMBOJU POOJITHA
7 21QA1A0507 ANAMONI RAHUL YADAV
8 21QA1A0508 ANNEBOINA VENKATESH
9 21QA1A0509 AREEB ABDUL GHANI
10 21QA1A0510 NADIMINTI VAISHNAVI
11 21QA1A0511 ASHWALLA POOJA
12 21QA1A0512 B GANESH
13 21QA1A0513 BALAGONI MANISHA
14 21QA1A0514 BANAVATH SAI
15 21QA1A0515 BANDANADHAM NAKSHATHRA
16 21QA1A0516 BASWARAJU VAMSHI
17 21QA1A0517 BHIMAGANI MAHESH
18 21QA1A0518 BOKIDI CHANDRA SHEKAR
19 21QA1A0519 BOLLU MAHESH
20 21QA1A0520 BUDIDHA RAKSHITHA
21 21QA1A0521 BURRI VARDHAN BABU
22 21QA1A0522 BUSARAPU ASHISH KUMAR
23 21QA1A0523 BUTTA KARTHIKEYA
24 21QA1A0524 BYREDDY PRADEEP REDDY
25 21QA1A0525 CHILUKARAJU SHIVA
26 21QA1A0526 CHIMMALLA NARSIMHULU
27 21QA1A0527 CHINTALA GOPI
28 21QA1A0528 CHITTIPROLU MOUNA
29 21QA1A0529 DACHEPALLI ANJALI
30 21QA1A0531 DASOJU SRAVANTHI
31 21QA1A0532 DAVA AKSHITHA
32 21QA1A0533 DOMALAPALLI SREAYA
33 21QA1A0534 DUPAM BHAVISHYA
34 21QA1A0535 DUVVAKA VAMSHI KRISHNA
35 21QA1A0536 E GOURAV
36 21QA1A0537 JAKKALA MEGHANA
37 21QA1A0538 ERAGADINDLA SAI RAM
38 21QA1A0539 KANNEGANTI GOWTHAMI SRI
39 21QA1A0540 FATHEPUR SANJAY
40 21QA1A0541 G JAYAPRAKASH
41 21QA1A0542 G SRIKANTH
42 21QA1A0543 G SUMAN
43 21QA1A0544 G VIJAY
44 21QA1A0545 GADARI HEMA
45 21QA1A0546 GADDAGUNTI SWATHI
46 21QA1A0547 GADDAM GAYATHRI
47 21QA1A0548 GADI RAJESH
48 21QA1A0549 GANDHARIPALLY MADHAVI

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 40
GANGARAPU MAHESH KUMAR
49 21QA1A0550 REDDY
50 21QA1A0551 GATLA ANUDEEP
51 21QA1A0552 GATUMIDA SAIKRISHNA
52 21QA1A0553 YAMARIAP SINDHU
53 21QA1A0554 GODA BHAVANA
54 21QA1A0555 KUNA LAVANYA
55 21QA1A0556 GOWTI RAMA DEVI
56 21QA1A0557 GUDA SAI KUMAR
57 21QA1A0558 GUJJULA KALYANI
GULLAPELLY SHIVARAMA
58 21QA1A0559 KRISHNA
59 21QA1A0560 GUMMADI MAHESH KUMAR
60 21QA1A0561 GUNDAMADAGALA CHANDU
GUNTUPALLI KRISHNA CHAI-
61 21QA1A0562 TANYA
62 21QA1A0563 GUTAM CHAKRIDER REDDY
63 21QA1A0564 JABORE MANIKANTA
64 21QA1A0565 RANGA DURGA BHAVANI
65 21QA1A0567 JANAGAM JASWIKA
66 21QA1A0568 JANGAM SIREESHA
67 21QA1A0571 K SARALA
KALAM ABHINAV KARTHIKEYA
68 21QA1A0572 REDDY
69 21QA1A0573 KAMATHAM MANJULA
70 21QA1A0574 KANDIKANTI POOJA
71 21QA1A0575 ABDUL MALIK RAHIL
72 21QA1A0576 KEESARI AKHILA
73 21QA1A0577 KETHAVATH MAMATHA
74 21QA1A0578 KETHAVATH SHIRISHA
75 21QA1A0579 KHAJA AMIR ALI KHAN
76 21QA1A0580 KHATRAVATH SIDDU
77 21QA1A0582 KOMMU RAVI KUMAR
78 21QA1A0583 KONDAKINDI PAVAN REDDY
79 21QA1A0584 KONDAM NAGESH
80 21QA1A0585 KONDE SRINIVAS
81 21QA1A0586 KOTA CHANDANA
82 21QA1A0587 KOTHA SRIDHAR
83 21QA1A0588 KOTHAPALLY CHANDANA
84 21QA1A0589 KOTTE SRAVANI
85 21QA1A0590 SYED SADIQ QUADRI
86 21QA1A0591 GOGIKAR ROHIT RAJ
87 21QA1A0592 KUNDETI VAMSHI
KUNKALAKUNTLA MADHU
88 21QA1A0593 PRASANTH

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 41
89 21QA1A0594 KURVA VENKATESH
90 21QA1A0595 LAL AJITH KUMAR
91 21QA1A0596 ARROLLA AMULYA
92 21QA1A0597 M ANKITHA
93 21QA1A05A0 MALA KAMMARI SOUJANYA
94 21QA1A05A1 BOLLU VINAY
95 21QA1A05A2 MALLEBOINA SRAVANI
96 21QA1A05A3 MAMIDI SHIVA
97 21QA1A05A5 MASAMPALLY KAVYA
98 21QA1A05A6 MENDIKAR RAMOJI
99 21QA1A05A7 MEREDDY HARSHITH REDDY
100 21QA1A05A8 MOGURLA DEVENDER
101 21QA1A05A9 MOHAMMED ABDUL FOUZAQN
102 21QA1A05B0 MOHAMMED KAREEEM
103 21QA1A05B1 MOHAMMED MUSAIB
104 21QA1A05B2 MOHD ATEEQ
105 21QA1A05B3 MOHD IMRAN
106 21QA1A05B4 MOHD JAHANGEER
107 21QA1A05B5 MUDIKE GANESH
108 21QA1A05B6 MUNNA MAHESH
109 21QA1A05B7 YANGALY PRANAV CHANDRAA
110 21QA1A05B8 NAGABATHULA VENNELA
111 21QA1A05C1 PADAKANTI SWATHI
112 21QA1A05C2 PAIDIPALA SRAVAN
113 21QA1A05C3 PANDULA SAI SRI
114 21QA1A05C4 PANDULA SONY
115 21QA1A05C5 PASIRIKALA SAI KUMAR
116 21QA1A05C6 PEDDAKOTLA PAUL RAJ
117 21QA1A05C7 PENDAM RAHUL
118 21QA1A05C8 PERA NARENDAR
YANALA REWAN KARTHIK
119 21QA1A05C9 REDDY
120 21QA1A05D0 SAI RAM PILLI
121 21QA1A05D1 PINDI BHAVANI
122 21QA1A05D2 POCHAMPALLY VIVEK
123 21QA1A05D3 POWAR JAIPAL
124 21QA1A05D4 RAMAGIRI ARUNKUMAR
125 21QA1A05D5 ETTEDI SATHVIKA
126 21QA1A05D6 RANGU MANIKANTA
127 21QA1A05D7 RATHLAVATH MADHULATHA
128 21QA1A05D8 SABAVATH PREMRAJ
129 21QA1A05D9 SABBU GANESH REDDY
130 21QA1A05E1 SAGRIKA
131 21QA1A05E2 SAI VARUN REDDY N
132 21QA1A05E3 SAJJA CHANDRA SHEKAR RAO

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 42
133 21QA1A05E4 SALLA SAI KIRAN
134 21QA1A05E6 SHERLA VARUN CHANDRA
135 21QA1A05E7 SINDHE VAMSHI
136 21QA1A05E8 SULTHAN SATHEESH
137 21QA1A05E9 SUNKI LAHARIKA
138 21QA1A05F0 SURJEET KUMAR
139 21QA1A05F2 LINGALA SHREYA
140 21QA1A05F3 TANUKU CHAKRADHAR
141 21QA1A05F4 TELUKUNTLA KARTHIK
THANGELLAPALLY LAXMI
142 21QA1A05F5 PRASANNA
143 21QA1A05F6 THOTA HARIKRISHNA
144 21QA1A05F7 THUMMALA MANASA
145 21QA1A05F8 THIPPARAM RAJESH KUMAR
146 21QA1A05F9 URIMELA AKHIL REDDY
147 21QA1A05G0 USIKAGULA SNEHA
148 21QA1A05G1 USIKE ARAVIND
149 21QA1A05G2 VADALA SHRAVAN
150 21QA1A05G3 VALISHETTI SAI PRAVEEN
151 21QA1A05G4 VANGURU SHIVA
152 21QA1A05G6 VARIKUPPALA BHARGAVI
153 21QA1A05G7 VELAKURTHI HARISH
154 21QA1A05G8 VELISOJU AKHIL
155 21QA1A05G9 VELPULA SOWMYA
156 21QA1A05H0 VENNU SWETHA
PERUMALLAPALLI JAYA
157 21QA1A05H4 PRAKASH
158 22QA5A0501 ANKAM ACHALA
159 22QA5A0502 BOYAJULA RACHEL
160 22QA5A0503 D.SWATHI
161 22QA5A0504 ELKATOORI RAJESH
162 22QA5A0505 ELURI ABILASH
163 22QA5A0506 GOGIKAR VINAY
164 22QA5A0507 KADAVATH GANGAPRASAD
165 22QA5A0508 KARREWAR SANTHOSH
166 22QA5A0509 KOPPERA MURALI
167 22QA5A0510 MALLOJU JHANSI
168 22QA5A0511 MANGALARAPU NITYASREE
169 22QA5A0512 MANGALARAPU RAMYASREE
170 22QA5A0513 MOHD SAMEER
171 22QA5A0514 NAGILLA SHIVANI
172 22QA5A0515 P.RAJU
173 22QA5A0516 VEERADASU NAVEEN

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 43
Assignment Test-1 Question paper and Marks Award Sheet

Assignment-1

1. Differentiate between procedural and object oriented langauages

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 44
2. Write a program that finds the largest prime number that is less than a specified
value.
3. Write a Java Program to check whether a String is palindrome or not.
4. Write a Java Program to demonstrate Constructor overloading.
5. Write a Java Program to demonstrate Constructor chaining.
6. Write a Java Program to demonstrate Method overriding.
7. Write a Java Program demonstrate the Use of “super” keyword.
8. Write a Java Program to Sort a given list of names in ascending order.
9. Write a Java Program to represent bank account containing Account number ac-
count name and balance and methods as Deposit and withdraw.
10. Write a Java Program to demonstrate Single inheritance.
11. Write a Java Program to demonstrate Static keyword.
12. Design and develop a java program to show abstract methods
13. Write a Java Program Method to throw “insufficient fund exception” in with-
draw method of bank account class.
14. Write a Java Program to demonstrate Try-catch-finally all in one program.

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 45
II B.Tech II Semester I-Mid Examinations, May-June -2023

Branch & Sections: CSE


Sub: JAVA PROGRAMMING (Set - I)

FACULTY NAME: SRIKANTH Date: 02/06/2023FN


Time: 60mins Max. Marks: 20M

2 X 10=20M
Answer all Questions
Blooms Taxon- Marks
Sl. CO
Question omy
No. Mapping
Level
a) What is class? How does it accomplish data hiding?
1 b) Explain the polymorphism and overloading with an example. C01 1,2 10

OR
a) What is a constructor? What are its special properties?
2 b) Elaborate the Uses of ‘Super’ keyword, discuss accessing the CO1 1,6 10
member of a super class
a) Explain the process of importing and accessing a package with
suitable examples. C02 1,2
3 10
b) What do you know about Random Access File?

OR
a) Write about some Java’s built in exceptions with example.
b) Develop a program with nested try statements for handling ex-
4 C03 3 10
ception

II B.Tech II Semester II-Mid Examinations, AUGUST-2021

Roll Num-

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 46
ber

Branch & Sections: CSE-C Date: 02/06/2021FN

Sub: JAVA PROGRAMMING Max. Marks: 20M

PART-A
Answer all Questions 10 X 0.5 = 5

Part-A

1 The kind of language that is easiest for people to use is []

assembly machine lan- low-level high-level lan-


A B C D
language guage language guage

2 A data item that can only be used within a method is called []

a local vari- an instance a global


A B C D a private variable
able variable variable

3 Which of these keywords is used to prevent content of a variable from being modified? []

A Final B static C const D abstract

4 _______is the process of using same name for two or more functions []

Method Constructor Constructor Method over-


A B C D
Overriding overloading overriding loading

5 Which of these can be used to fully abstract a class from its implementation? []

None of the
A Objects B Packages C Interfaces D
Mentioned

6 Which of these keywords is used by a class to use an interface defined previously? []

A Import B Import C implements D implements

7 Using which of the following, multiple inheritance in Java can be implemented? []

Protected
A Interfaces B Multithreading C D Private methods
methods

In order to restrict a variable of a class from inheriting to subclass, how variable should
8 []
be declared?

A Protected B Private C Public D Static

9 Which of these keywords is used to manually throw an exception? []

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 47
A Try B finally C throw D catch

10 Exception classes are available in the ……………………package. []

A java.lang B java.awt C java.io D java.applet

Answer all Questions 10 X 0.5 = 5

Part-B

Fill in the Blanks

The Java interpreter translates a Java program from ____to machine language.byte
1.
code

2. Java compiler translated the source code into _byte code

3. Automatic deletion of already allocated but unused memory is called _delete

4. Each and every class in java is inherited from _________________ classsuper/object

5. _________________access specifiers can be used for an interfacepublic

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 48
6. The variable in interface is ________________________public static final

7. _____method is used for writing bytes to an output stream?write

8. _______________ package contains classes and interfaces for networking.java.net

9. A ___________ is an exception that occurs at the compile timechecked exception

10. Exception class is available in ____________java.lang

BRILLIANT INSTITUTE OF ENGINEERING & TECHNOLOGY


I-MID AWARD LIST
II-II B.TECH CSE 2022-23
NAME OF THE SUBJECT: JAVA PROGRAMMING
NAME OF THE FACULTY: J.SRIKANTH
DISCRIPTIVE OBJECTIVE ASSINMENT Total
S.No. Roll No (10) (10) -5 (25M)
1 21QA1A0501 10 8 5 23
2 21QA1A0502 10 8 5 23
3 21QA1A0503 9 10 5 24
4 21QA1A0504 5 7 5 17
5 21QA1A0505 10 7 5 22
6 21QA1A0506 5 6 5 16
7 21QA1A0507 10 8 5 23
8 21QA1A0508 5 9 5 19

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 49
9 21QA1A0509 5 10 5 20
10 21QA1A0510 10 8 5 23
11 21QA1A0511 10 9 5 24
12 21QA1A0512 10 10 5 25
13 21QA1A0513 10 10 5 25
14 21QA1A0514 10 9 5 24
15 21QA1A0515 10 10 5 25
16 21QA1A0516 10 9 5 24
17 21QA1A0517 10 10 5 25
18 21QA1A0518 10 10 5 25
19 21QA1A0519 10 10 5 25
20 21QA1A0520 10 9 5 24
21 21QA1A0521 10 10 5 25
22 21QA1A0522 10 10 5 25
23 21QA1A0523 10 9 5 24
24 21QA1A0524 10 10 5 25
25 21QA1A0525 10 10 5 25
26 21QA1A0526 10 10 5 25
27 21QA1A0527 10 9 5 24
28 21QA1A0528 10 10 5 25
29 21QA1A0529 10 10 5 25
30 21QA1A0531 10 8 5 23
31 21QA1A0532 10 10 5 25
32 21QA1A0533 10 10 5 25
33 21QA1A0534 9 9 5 23
34 21QA1A0535 10 10 5 25
35 21QA1A0536 10 10 5 25
36 21QA1A0537 10 8 5 23
37 21QA1A0538 10 8 5 23
38 21QA1A0539 9 10 5 24
39 21QA1A0540 5 7 5 17
40 21QA1A0541 10 7 5 22
41 21QA1A0542 5 6 5 16
42 21QA1A0543 10 8 5 23
43 21QA1A0544 5 9 5 19
44 21QA1A0545 5 10 5 20
45 21QA1A0546 10 8 5 23
46 21QA1A0547 10 9 5 24
47 21QA1A0548 10 10 5 25
48 21QA1A0549 10 10 5 25
49 21QA1A0550 10 9 5 24
50 21QA1A0551 10 10 5 25
51 21QA1A0552 10 9 5 24

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 50
52 21QA1A0553 10 10 5 25
53 21QA1A0554 10 10 5 25
54 21QA1A0555 10 10 5 25
55 21QA1A0556 10 9 5 24
56 21QA1A0557 10 10 5 25
57 21QA1A0558 10 10 5 25
58 21QA1A0559 10 9 5 24
59 21QA1A0560 10 10 5 25
60 21QA1A0561 10 10 5 25
61 21QA1A0562 10 10 5 25
62 21QA1A0563 10 9 5 24
63 21QA1A0564 10 10 5 25
64 21QA1A0565 10 10 5 25
65 21QA1A0567 10 8 5 23
66 21QA1A0568 10 10 5 25
67 21QA1A0571 10 10 5 25
68 21QA1A0572 9 9 5 23
69 21QA1A0573 10 10 5 25
70 21QA1A0574 10 10 5 25
71 21QA1A0575 10 8 5 23
72 21QA1A0576 10 8 5 23
73 21QA1A0577 9 10 5 24
74 21QA1A0578 5 7 5 17
75 21QA1A0579 10 7 5 22
76 21QA1A0580 5 6 5 16
77 21QA1A0582 10 8 5 23
78 21QA1A0583 5 9 5 19
79 21QA1A0584 5 10 5 20
80 21QA1A0585 10 8 5 23
81 21QA1A0586 10 9 5 24
82 21QA1A0587 10 10 5 25
83 21QA1A0588 10 10 5 25
84 21QA1A0589 10 9 5 24
85 21QA1A0590 10 10 5 25
86 21QA1A0591 10 9 5 24
87 21QA1A0592 10 10 5 25
88 21QA1A0593 10 10 5 25
89 21QA1A0594 10 10 5 25
90 21QA1A0595 10 9 5 24
91 21QA1A0596 10 10 5 25
92 21QA1A0597 10 10 5 25
93 21QA1A05A0 10 9 5 24
94 21QA1A05A1 10 10 5 25

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 51
95 21QA1A05A2 10 10 5 25
96 21QA1A05A3 10 10 5 25
97 21QA1A05A5 10 9 5 24
98 21QA1A05A6 10 10 5 25
99 21QA1A05A7 10 10 5 25
100 21QA1A05A8 10 8 5 23
101 21QA1A05A9 10 10 5 25
102 21QA1A05B0 10 10 5 25
103 21QA1A05B1 9 9 5 23
104 21QA1A05B2 10 10 5 25
105 21QA1A05B3 10 10 5 25
106 21QA1A05B4 10 8 5 23
107 21QA1A05B5 10 8 5 23
108 21QA1A05B6 9 10 5 24
109 21QA1A05B7 5 7 5 17
110 21QA1A05B8 10 7 5 22
111 21QA1A05C1 5 6 5 16
112 21QA1A05C2 10 8 5 23
113 21QA1A05C3 5 9 5 19
114 21QA1A05C4 5 10 5 20
115 21QA1A05C5 10 8 5 23
116 21QA1A05C6 10 9 5 24
117 21QA1A05C7 10 10 5 25
118 21QA1A05C8 10 10 5 25
119 21QA1A05C9 10 9 5 24
120 21QA1A05D0 10 10 5 25
121 21QA1A05D1 10 9 5 24
122 21QA1A05D2 10 10 5 25
123 21QA1A05D3 10 10 5 25
124 21QA1A05D4 10 10 5 25
125 21QA1A05D5 10 9 5 24
126 21QA1A05D6 10 10 5 25
127 21QA1A05D7 10 10 5 25
128 21QA1A05D8 10 9 5 24
129 21QA1A05D9 10 10 5 25
130 21QA1A05E1 10 10 5 25
131 21QA1A05E2 10 10 5 25
132 21QA1A05E3 10 9 5 24
133 21QA1A05E4 10 10 5 25
134 21QA1A05E6 10 10 5 25
135 21QA1A05E7 10 8 5 23
136 21QA1A05E8 10 10 5 25
137 21QA1A05E9 10 10 5 25

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 52
138 21QA1A05F0 9 9 5 23
139 21QA1A05F2 10 10 5 25
140 21QA1A05F3 10 10 5 25
141 21QA1A05F4 10 8 5 23
142 21QA1A05F5 10 8 5 23
143 21QA1A05F6 9 10 5 24
144 21QA1A05F7 5 7 5 17
145 21QA1A05F8 10 7 5 22
146 21QA1A05F9 5 6 5 16
147 21QA1A05G0 10 8 5 23
148 21QA1A05G1 5 9 5 19
149 21QA1A05G2 5 10 5 20
150 21QA1A05G3 10 8 5 23
151 21QA1A05G4 10 9 5 24
152 21QA1A05G6 10 10 5 25
153 21QA1A05G7 10 10 5 25
154 21QA1A05G8 10 9 5 24
155 21QA1A05G9 10 10 5 25
156 21QA1A05H0 10 9 5 24
157 21QA1A05H4 10 10 5 25
158 22QA5A0501 10 10 5 25
159 22QA5A0502 10 10 5 25
160 22QA5A0503 10 9 5 24
161 22QA5A0504 10 10 5 25
162 22QA5A0505 10 10 5 25
163 22QA5A0506 10 9 5 24
164 22QA5A0507 10 10 5 25
165 22QA5A0508 10 10 5 25
166 22QA5A0509 10 10 5 25
167 22QA5A0510 10 9 5 24
168 22QA5A0511 10 10 5 25
169 22QA5A0512 10 10 5 25
170 22QA5A0513 10 8 5 23
171 22QA5A0514 10 10 5 25
172 22QA5A0515 10 10 5 25
173 22QA5A0516 9 9 5 23

b) Assignment-2 question papers and results

Assignment-2

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 53
1. Write a Java Program to define two threads such that one thread prints even
numbers and another thread prints odd numbers.
2. Write a Java Program to demonstrate Synchronization concept.
3. Design and develop a java program to create three threads the first thread
prints ‘good morning’ for every one second ,the second thread prints ‘hello!’ for
every 2 seconds and the third thread prints ‘welcome’ for every three seconds.
4. Write a Java Program to demonstrate Event handling.
5. Design and develop a java program that reads a filename and displays the file
on screen with the line number before each line
6. Design and develop a java program that reads a filename from keyboard and
display the number of characters, lines, and words in the file.
7. Design and develop a java program that reads a filename from the user that dis-
plays information about whether the file exists\readable\writable\type of file and
length of file.
8. Design and develop a java program to show all the stack operations.
9. 5 Illustrate Vector and Hashtable using a program.
10. Write a Java Program to demonstrate Choice.
11. Write a Java Program to demonstrate Menu Bar.
12. Design and develop a java program to create an applet and display a sim-
ple message like “Hello! Welcome to Applet Programming”.
13. Write a java program that simulates a traffic light. The program lets the
user select one of three lights: red, yellow, or green. When a radio button is se-
lected, the light is turned on, and only one light can be on at a time No light is
on when the program starts.
14. Write a Java program that allows the user to draw lines, rectangles and
ovals.
15. Design and develop a java program to show the use Calendar class
16. 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.
17. Write a program that creates a user interface to perform integer divisions. The
user enters two numbers in the textfields, Num1 and Num2. The division of
Num1 and Num2 is displayed in the Result field when the Divide button is
clicked. If Num1 or Num2 were not an integer, the 328
18. program would throw a NumberFormatException. If Num2 were Zero, the program would throw an
ArithmeticException Display the exception in a message dialog box.

c) Mid-2 Question paper, Marks Sheet, Sample copy of Best, Average and Below Average Answer
Scripts:

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 54
II B.Tech II Semester II-Mid Examinations, AUGUST-2023
Roll Number SET - 2

Branch & Sections: CSE Date: 24.08.2023 (FN)


Sub: JAVA PROGRAMMING Max. Marks: 10M

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 55
Answer all Questions 10 X 0.5 = 5
Part-A

1 Thread priority in Java is? [ A ]


A Integer B Float C Double D long

2 What is the name of the method used to start a thread execution? B ]


A init(); B start(); C run(); D resume();

3 Which of the below does not implement Map interface? D ]


A HashMap B Hashtable C EnumMap D Vector

4 Which object can be constructed to show any number of choices in the visible window? [ C]
A Labels B Choice C List D Checkbox
5 What is the correct method used to insert and delete items from the queue? [B ]
enqueue and de- enqueue and
A push and pop B C D add and remove
queue peek

Which is the container that doesn't contain title bar and MenuBars but it can have other
6 [C ]
components like button, textfield etc?
A Window B Frame C Panel D Container

7 Which object can be constructed to show any number of choices in the visible window? [C ]
A Labels B Choice C List D Checkbox

8 Which of these methods can be used to output a string in an applet? [C ]


A display() B print() C drawString() D transient()

9 Which of these events is generated when the size of an event is changed? [ A ]


A ComponentEvent B ContainerEvent C FocusEvent D InputEvent

Which of these packages contains all the classes and methods required for even handling in
10 [ ]
Java?
A java.applet B java.awt C java.event D java.awt.event

Part-B
Fill in the Blanks
1. ___________decides thread priority.Thread Scheduler

2. ____________ is used to implement synchronization.Thread Synchronizatioon

3. The interface is used to traverse a list in both forward and backward direction is ________ListIter-
ator

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 56
4. The return type of Math.random() method is _______double
5. ________________method is used to generate boolean random values in java.nextBoolean

6. __________methods can randomize all elements in a list.Shuffle


7. Method used to register a keyboard event listener is ______ActionListener
8. ________ is changing the state of an object.Event
9. java.applet.Applet, the default layout manager is __________FlowLayout
10. Swing components are available in ___________javax.swing

21 - Lecture notes
Unit-1

A way of viewing world


A way of viewing the world is an idea to illustrate the object-oriented programming concept with an example
of a real-world situation.
Let us consider a situation, I am at my office and I wish to get food to my family members who are at my
home from a hotel. Because of the distance from my office to home, there is no possibility of getting food from
a hotel myself. So, how do we solve the issue?
To solve the problem, let me call zomato (an agent in food delevery community), tell them the variety and
quantity of food and the hotel name from which I wish to delever the food to my family members. Look at the
following image.

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 57
6. Agents and Communities

To solve my food delivery problem, I used a solution by finding an appropriate agent (Zomato) and pass a
message containing my request. It is the responsibility of the agent (Zomato) to satisfy my request. Here, the
agent uses some method to do this. I do not need to know the method that the agent has used to solve my
request. This is usually hidden from me.
So, in object-oriented programming, problem-solving is the solution to our problem which requires the help
of many individuals in the community. We may describe agents and communities as follows.
In our example, the online food delivery system is a community in which the agents are zomato and set of
hotels. Each hotel provides a variety of services that can be used by other members like zomato, myself, and
my family in the community.

7. Messages and Methods

To solve my problem, I started with a request to the agent zomato, which led to still more requestes among
the members of the community until my request has done. Here, the members of a community interact with
one another by making requests until the problem has satisfied.
In object-oriented programming, every action is initiated by passing a message to an agent (object), which
is responsible for the action. The receiver is the object to whom the message was sent. In response to the
message, the receiver performs some method to carry out the request. Every message may include any ad -
ditional information as arguments.

In our example, I send a request to zomato with a message that contains food items, the quantity of food,
and the hotel details. The receiver uses a method to food get delivered to my home.

8. Responsibilities

In object-oriented programming, behaviors of an object described in terms of responsibilities.

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 58
In our example, my request for action indicates only the desired outcome (food delivered to my family). The
agent (zomato) free to use any technique that solves my problem. By discussing a problem in terms of
responsibilities increases the level of abstraction. This enables more independence between the objects in
solving complex problems.

9. Classes and Instances

In object-oriented programming, all objects are instances of a class. The method invoked by an object in
response to a message is decided by the class. All the objects of a class use the same method in response to a
similar message.
In our example, the zomato a class and all the hotels are sub-classes of it. For every request (message), the
class creates an instance of it and uses a suitable method to solve the problem.

10. Classes Hierarchies

A graphical representation is often used to illustrate the relationships among the classes (objects) of a
community. This graphical representation shows classes listed in a hierarchical tree-like structure. In this
more abstract class listed near the top of the tree, and more specific classes in the middle of the tree, and the
individuals listed near the bottom.
In object-oriented programming, classes can be organized into a hierarchical inheritance structure. A child
class inherits properties from the parent class that higher in the tree.

11. Method Binding, Overriding, and Exception

In the class hierarchy, both parent and child classes may have the same method which implemented
individually. Here, the implementation of the parent is overridden by the child. Or a class may provide
multiple definitions to a single method to work with different arguments (overloading).
The search for the method to invoke in response to a request (message) begins with the class of this receiver.
If no suitable method is found, the search is performed in the parent class of it. The search continues up the
parent class chain until either a suitable method is found or the parent class chain is exhausted. If a suitable
method is found, the method is executed. Otherwise, an error message is issued.

12. OOPs (Object-Oriented Programming System)


Object means a real-world entity such as a pen, chair, table, computer, watch, etc. Object-Oriented
Programming is a methodology or paradigm to design a program using classes and objects. It simplifies
software development and maintenance by providing some concepts:

o Object
o Class
o Inheritance
o Polymorphism
o Abstraction

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 59
o Encapsulation
13. Object

Any entity that has state and behavior is known as an object. For example, a chair, pen, table, keyboard, bike,
etc. It can be physical or logical.

An Object can be defined as an instance of a class. An object contains an address and takes up some space in
memory. Objects can communicate without knowing the details of each other's data or code. The only
necessary thing is the type of message accepted and the type of response returned by the objects.

Example: A dog is an object because it has states like color, name, breed, etc. as well as behaviors like
wagging the tail, barking, eating, etc.

14. Class
Collection of objects is called class. It is a logical entity.

A class can also be defined as a blueprint from which you can create an individual object. Class doesn't
consume any space.

Inheritance
When one object acquires all the properties and behaviors of a parent object, it is known as inheritance. It
provides code reusability. It is used to achieve runtime polymorphism.

Polymorphism
If one task is performed in different ways, it is known as polymorphism. For example: to convince the
customer differently, to draw something, for example, shape, triangle, rectangle, etc.

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 60
In Java, we use method overloading and method overriding to achieve polymorphism.

Another example can be to speak something; for example, a cat speaks meow, dog barks woof, etc.

Abstraction
Hiding internal details and showing functionality is known as abstraction. For example phone call, we don't
know the internal processing.

In Java, we use abstract class and interface to achieve abstraction.

Encapsulation
Binding (or wrapping) code and data together into a single unit are known as encapsulation. For example, a
capsule, it is wrapped with different medicines.

A java class is the example of encapsulation. Java bean is the fully encapsulated class because all the data
members are private here.

Coupling
Coupling refers to the knowledge or information or dependency of another class. It arises when classes are
aware of each other. If a class has the details information of another class, there is strong coupling. In Java,
we use private, protected, and public modifiers to display the visibility level of a class, method, and field. You
can use interfaces for the weaker coupling because there is no concrete implementation.

Cohesion
Cohesion refers to the level of a component which performs a single well-defined task. A single well-defined
task is done by a highly cohesive method. The weakly cohesive method will split the task into separate parts.
The java.io package is a highly cohesive package because it has I/O related classes and interface. However,
the java.util package is a weakly cohesive package because it has unrelated classes and interfaces.

Association
Association represents the relationship between the objects. Here, one object can be associated with one
object or many objects. There can be four types of association between the objects:

o One to One
o One to Many
o Many to One, and

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 61
o Many to Many

Let's understand the relationship with real-time examples. For example, One country can have one prime
minister (one to one), and a prime minister can have many ministers (one to many). Also, many MP's can
have one prime minister (many to one), and many ministers can have many departments (many to many).

Association can be undirectional or bidirectional.

Aggregation
Aggregation is a way to achieve Association. Aggregation represents the relationship where one object
contains other objects as a part of its state. It represents the weak relationship between objects. It is also
termed as a has-a relationship in Java. Like, inheritance represents the is-a relationship. It is another way to
reuse objects.

Composition
The composition is also a way to achieve Association. The composition represents the relationship where one
object contains other objects as a part of its state. There is a strong relationship between the containing
object and the dependent object. It is the state where containing objects do not have an independent
existence. If you delete the parent object, all the child objects will be deleted automatically.

Buzzwords of Java

The inventors of Java wanted to design a language which could offer solutions to some of the problems en-

countered in modern programming. They wanted the language to be not only reliable, portable and distrib-

uted but also simple, compact and interactive. The authors of Java have written an influential White Paper

that explains the features of java by all of the following buzzwords:

 Simple

 Object Oriented

 Platform Independent

 Distributed

 Robust

 Secure

 Architecture Neutral

 Portable

 Interpreted

 High Performance

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 62
 Multithreaded

 Dynamic
1. Simple
Java is an object-oriented programming language with syntax and keywords almost identical to C++. When

developing Java, its creators took all of the good features of the existing object-oriented programming lan-

guages such as C++, Ada, and Smalltalk, and removed most of their flaws and peculiarities. There are a lot of

aspects of the Java language that are consistent and make sense, thereby making it easier to learn.

If you are familiar with C++ you would know about clumsy features of C++: header files, pointer arithmetic (or

even pointer syntax), structures, unions, operator overloading, virtual base classes, and so on. All these

clumsy features are cleaned-up in java making it easier to learn.


2. Object Oriented

What is object oriented programming (OOP) language?

Any programming language if supports Encapsulation, Abstraction, Inheritance, Polymorphism then that lan-

guage is an object oriented programming language. E.g. java, C++

Define OOP concepts?

If you have just started learning java, definitely it is very hard to understand the Object oriented program-

ming (OOP) concepts. Once you learn java completely then you will understand these concepts. Many java

professional who are using these concepts in their daily life will fail to define OOP (Object Oriented Program-
ing) concepts. Below are the definitions of OOP concepts which will surely help you when you are attending

the java interviews.

Encapsulation: It is the Process of binding the data and methods together into a single unit. Example: Binding

private variables with setter and getter methods.

Abstraction: Showing Essential properties and methods of an object by hiding internal things is called as Ab-

straction. Abstraction is possible if and only if there is encapsulation. Example: Java is an abstraction layer

over binary language. Hibernate is an abstraction layer over JDBC

Inheritance: Inheriting the properties and methods of one class (super class) into another class (sub class) us-

ing IS a relationship. Example: Ferrari class inherits the features of Car class. Puppy class inherit the features

of Dog class, Dog class inherit the features of Animal class

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 63
Polymorphism: One form behaving differently in different situations is called polymorphism. Animal class be-

having differently for different objects like Dog, Cat etc...


3. Platform independent
Java can run in any system line windows, Linux, mac etc. You no need to write separate program for individ-

ual platform/OS. Program written in Windows platform can run in Linux platform. Output of java compiler

(javac.exe in windows) is a bytecode (.calss file), but not native machine code. This bytecode is interpreted by

virtual machine (not by real computer) as real computer interprets .exe files in C/C++. Such a virtual machine

is called as Java Virtual Machine (JVM).

Translating java program into Byte code makes it much easier to run a program in wide variety of platforms/

Environments, because only JVM need to be implemented. Once bytecode is ready, we can run it in windows,
Linux, calculator, mobile, watch etc.., but one thing is all environments require just JVM. Details of JVM differ

from environment to environment. (Platform to Platform)

4. Distributed
 A technology is said to be distributed if it's business objects are geographically dispersed into

different locations and still communicating one another.

 Networking capabilities of java are strong and easy to use.

 Onerous tasks like opening a socket connection are simple in Java.

 An elegant mechanism, called servlets, makes server-side processing in Java extremely effi-

cient. Many popular web servers support servlets.

5. Robust

Programming language is robust when it is reliable and strong. Below capabilities make java robust:

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 64
 Java has a garbage collector which will automatically clean up unused objects and memory. No

need to chase memory corruption.

 In java you do not use pointers to access strings, arrays, objects, even files. Nor do you need to

worry about memory allocation for them.

 Java has exception handling mechanism which is very useful in handling both compile and run

time errors. Without handling errors and exceptions, entire application would fail. With exception

handling it just stops the current flows even that are when failed, but rest all flows still runs.
6. Secure
Java team has said that they will have a “zero tolerance” for security bugs and will immediately go to work on

fixing any bugs found. Java program will be first compiled to byte code. This byte code will then be inter-
preted by Java Virtual Machine (JVM). JVM makes java secure with below factors:

 JVM will not overrun the runtime stack.

 JVM will not corrupt memory outside its own process space.

 JVM will not read or write to local files when invoked through a security-conscious class

loader.
7. Architecture Neutral
The compiler generates architecture-neutral bytecode instructions which have nothing to do with particular

computer architecture. These bytecode instructions can be run by only JVM. JVM is not same for platforms

and architectures. Java will provide you different JVMs for different platforms and architectures. So you just

have to install different JVMs. A bytecode once ready can be run by any JVM.
A program written in 32 bit operating system can be run by JVM in 64 bit operating system.
8. Portable
In C/C++ data size varies from platform to platform. For example integer can be a 16-bit integer, a 32-bit inte-

ger, or any other size that the compiler vendor likes. In java has a fixed size for data that eliminates a major

porting headache. Binary data is stored and transmitted in a fixed format, eliminating the “big endian/little

endian” confusion. Strings are saved in a standard Unicode format. Java does this by JVM. Java facilitates you

to carry the Java bytecode to any platform. It doesn't require write different program for different platforms

line windows, Linux etc…

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 65
9. Interpreted
Java Virtual Machine (JVM) is the java interpreter. The interpreter can execute Java bytecodes directly on any

machine to which the interpreter has been ported. Since installing JVM is a lightweight process, the develop-

ment process can be much more rapid and exploratory.


10. High Performance
When Java was still a new language, it was criticized for being slow: Since Java bytecode was executed by an

interpreter, it seemed that Java bytecode programs could never run as quickly as programs compiled into na-

tive machine language (that is, the actual machine language of the computer on which the program is run-

ning). However, this problem has been largely overcome by the use of just-in-time compilers (JIT) for execut-

ing Java bytecode.


JIT is a part of JVM. A just-in-time compiler translates Java bytecode into native machine language. It does

this while it is executing the program. Just as for a normal interpreter, the input to a just-in-time compiler is a

Java bytecode program, and its task is to execute that program.

It is important to understand that it is not practical to compile an entire Java program into executable code all

at once, because Java performs various run-time checks that can be done only at run time. Instead, a JIT com-

piler compiles code as it is needed, during execution. Furthermore, not all sequences of bytecode are com-

piled—only those that will benefit from compilation. The remaining code is simply interpreted. The translated

parts of the program can then be executed much more quickly than they could be interpreted. Since a given

part of a program is often executed many times as the program runs, a just-in-time compiler can significantly

speed up the overall execution time.


Even though dynamic compilation is applied to bytecode, the portability and safety features still apply, be-

cause the JVM is still in charge of the execution environment.

11. Multithreaded

A thread is defined as a separate path of execution inside any process. It is done to use CPU idle time. A

process consists of the memory space allocated by the operating system that can contain one or more

threads. A thread cannot exist on its own; it must be a part of a process. Whenever a thread is created within

a program it will not occupy any separate space. It will share the same memory space of the program. It will

also not consume more resources.

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 66
Thread implementations on the major platforms differ widely, but Java makes no effort to be platform inde-

pendent in this regard. Only the code for calling multithreading remains the same across machines; Java off-

loads the implementation of multithreading to the underlying operating system or a thread library.
12. Dynamic
In a number of ways, Java is a more dynamic language than C or C++. It was designed to adapt to an evolving

environment. Libraries can freely add new methods and instance variables without any effect on their clients.

In Java, finding out run time type information is straightforward. This is an important feature in those situa-

tions where code needs to be added to a running program.

Overview of java:
Java is a widely-used, object-oriented programming language that was developed by Sun Microsystems (now
owned by Oracle Corporation) and released in 1995. It was designed to be platform-independent, allowing
developers to write code that can run on any system with a Java Virtual Machine (JVM) installed. Here's an
overview of Java:

1. Simple and Familiar Syntax: Java's syntax is derived from the C and C++ programming languages,
making it relatively easy for developers familiar with those languages to learn Java. It has a clean and struc-
tured syntax, with a strong emphasis on readability and maintainability.
2. Platform-Independence: One of Java's key features is its "Write Once, Run Anywhere" principle. Java
source code is compiled into bytecode, which can be executed on any system with a compatible JVM. This al-
lows Java applications to run on diverse platforms, including Windows, macOS, Linux, and more.
3. Object-Oriented Programming (OOP): Java is designed around the principles of object-oriented pro-
gramming. It supports concepts such as classes, objects, inheritance, polymorphism, and encapsulation. This
makes it suitable for building modular and extensible applications.
4. Robust and Safe: Java places a strong emphasis on reliability and security. It includes features like au-
tomatic memory management (garbage collection) to handle memory allocation and deallocation, exception
handling to manage errors, and strong type-checking to catch potential programming mistakes at compile-
time.
5. Rich Standard Library: Java comes with a comprehensive standard library that provides a wide range
of pre-built classes and APIs. This library covers areas such as input/output operations, networking, database
connectivity, graphical user interface (GUI) development, multithreading, and more. The standard library sim-
plifies development and reduces the need for developers to reinvent the wheel.
6. Large Ecosystem: Java has a vast and active ecosystem with a multitude of open-source libraries,
frameworks, and tools. These resources enhance productivity, enable rapid development, and offer solutions
for various domains such as web development (e.g., Spring Framework), enterprise software (e.g., Java EE),
data processing (e.g., Apache Hadoop), and more.
7. Support for Concurrency: Java provides built-in support for concurrent programming. It includes fea-
tures like threads, synchronization, and thread pools, allowing developers to write code that efficiently han-
dles multiple tasks simultaneously. This is especially useful for applications that require parallel processing or
responsiveness.
8. Popular in Enterprise Development: Java has long been a popular choice for enterprise software de-
velopment. Its robustness, scalability, and extensive ecosystem make it well-suited for building large-scale,

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 67
mission-critical applications. Java Enterprise Edition (Java EE) provides additional APIs and specifications for
enterprise application development.
9. Continual Updates: Java continues to evolve with regular updates and releases. New versions intro-
duce language enhancements, performance improvements, security updates, and additional APIs. Developers
are encouraged to keep up with the latest releases to leverage new features and stay current with best prac-
tices.

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 68
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 69
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 70
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 71
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 72
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 73
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 74
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 75
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 76
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 77
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 78
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 79
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 80
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 81
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 82
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 83
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 84
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 85
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 86
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 87
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 88
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 89
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 90
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 91
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 92
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 93
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 94
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 95
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 96
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 97
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 98
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 99
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 100
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 101
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 102
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 103
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 104
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 105
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 106
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 107
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 108
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 109
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 110
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 111
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 112
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 113
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 114
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 115
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 116
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 117
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 118
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 119
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 120
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 121
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 122
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 123
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 124
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 125
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 126
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 127
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 128
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 129
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 130
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 131
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 132
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 133
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 134
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 135
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 136
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 137
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 138
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 139
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 140
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 141
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 142
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 143
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 144
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 145
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 146
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 147
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 148
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 149
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 150
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 151
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 152
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 153
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 154
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 155
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 156
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 157
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 158
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 159
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 160
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 161
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 162
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 163
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 164
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 165
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 166
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 167
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 168
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 169
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 170
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 171
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 172
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 173
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 174
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 175
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 176
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 177
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 178
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 179
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 180
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 181
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 182
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 183
Unit-3

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 184
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 185
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 186
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 187
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 188
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 189
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 190
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 191
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 192
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 193
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 194
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 195
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 196
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 197
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 198
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 199
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 200
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 201
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 202
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 203
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 204
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 205
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 206
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 207
Brilliant Institute of Engineering & Technology B.Tech II Year II Semester
Page 208
BRILLIANT INSTITUTE OF ENGINEERING AND TECHNOLOGY
Approved By AICTE, New Delhi, Affiliated to JNTU-H
Abdullapur (V), Abdullapurmet (M), R R Dist, Hyderabad. Telangana – 501 505

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


Academic Year: 2022-23 Year: B. TECH II YEAR SEM: II SEMISTER
NAME OF THE COURSE: JAVA PROGRAMMING
COURSE CODE: CS405PC

COURSE OUTCOMES:
Course Bloom’s Tax-
Course Outcome Statement
Outcome onomy level
CO1 Understand
Understanding the real world problem solving concepts using
OOP techniques.
CO2 Understand and able to solve the various class based problem Understand & Apply
solving techniques.
CO3 Understand and able to indentifying the problems based on Analyze & Apply
java collection framework and I/O Classes .
CO4 Understand and identify the problems & able to solve the Understand & apply
multithreading applications and synchronization using java
collection framework and I/O Classes .
CO5 Understanding and applying knowledge over GUI pro- Understand & Ana-
gramming with Swing, Event Handling &applet appli- lyze
cation

CO – PO, PSO Mapping


(3/2/1 indicates strength of correlation) 3- Strong, 2-Medium, 1-Weak
Mapping CO with PO/PSO; course with PO PSO

PO PO PO PO PO PO PO PO PO PO PO PO PS PS
1 2 3 4 5 6 7 8 9 10 11 12 O1 O2

CO1 3 - - - - - - - - - - - - 1
CO2 3 - - - - - - - - - - - - 2
CO3 3 3 3 2 - - - - - - - - - 1
CO4 3 3 2 3 - - - - - - - - - 2
CO5 3 3 3 3 - - - - - - - - - 1

Brilliant Institute of Engineering & Technology B.Tech II Year II Semester


Page 209

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy