Java Programming
Java Programming
(Autonomous)
JAVA PROGRAMMING L T P C
(Open Elective –I) 3 0 0 3
PRE-REQUISITES:
COURSE EDUCATIONAL OBJECTIVES:
UNIT –1:
Object Oriented Programming: Basic concepts, Principles, Program Structure in Java:
Introduction, Writing Simple Java Programs, Elements or Tokens in Java Programs, Java
Statements, Command Line Arguments, User Input to Programs, Escape Sequences
Comments, Programming Style. Data Types, Variables, and Operators :Introduction,
Data Types in Java, Declaration of Variables, Data Types, Type Casting, Scope of Variable
Identifier, Literal Constants, Symbolic Constants, Formatted Output with printf() Method,
Static Variables and Methods, Attribute Final, Introduction to Operators, Precedence
and Associativity of Operators, Assignment Operator ( = ), Basic Arithmetic Operators,
Increment (++) and Decrement (- -) Operators, Ternary Operator, Relational Operators,
Boolean Logical Operators, Bitwise Logical Operators.
Control Statements: Introduction, if Expression, Nested if Expressions, if–else
Expressions, Ternary Operator?:, Switch Statement, Iteration Statements, while
Expression, do–while Loop, for Loop, Nested for Loop, For–Each for Loop, Break Statement,
Continue Statement.
UNIT –2:
Classes and Objects: Introduction, Class Declaration and Modifiers, Class Members,
Declaration of Class Objects, Assigning One Object to Another, Access Control for Class
Members, Accessing Private Members of Class, Constructor Methods for Class, Overloaded
Constructor Methods, Nested Classes, Final Class and Methods, Passing Arguments by
Value and by Reference, Keyword this.
Methods: Introduction, Defining Methods, Overloaded Methods, Overloaded Constructor
Methods, Class Objects as Parameters in Methods, Access Control, Recursive Methods,
Nesting of Methods, Overriding Methods, Attributes Final and Static.
UNIT –3:
Arrays:Introduction, Declaration and Initialization of Arrays, Storage of Array in Computer
Memory, Accessing Elements of Arrays, Operations on Array Elements, Assigning Array to
Another Array, Dynamic Change of Array Size, Sorting of Arrays, Search for Values in
Arrays, Class Arrays, Two-dimensional Arrays, Arrays of Varying Lengths, Three-
dimensional Arrays, Arrays as Vectors. Inheritance: Introduction, Process of Inheritance,
Types of Inheritances, Universal Super ClassObject Class, Inhibiting Inheritance of Class
Using Final, Access Control and Inheritance, Multilevel Inheritance, Application of Keyword
Super, Constructor Method and Inheritance, Method Overriding, Dynamic Method Dispatch,
Abstract Classes, Interfaces and Inheritance.
Interfaces: Introduction, Declaration of Interface, Implementation of Interface, Multiple
Interfaces, Nested Interfaces, Inheritance of Interfaces, Default Methods in Interfaces,
Static Methods in Interface, Functional Interfaces, Annotations.
SREENIVASAINSTITUTEOFTECHNOLOGYANDMANAGEMENTSTUDIES
(Autonomous)
UNIT –4:
Packages and Java Library: Introduction, Defining Package, Importing Packages and
Classes into Programs, Path and Class Path, Access Control, Packages in Java SE, Java.lang
Package and its Classes, Class Object, Enumeration, class Math, Wrapper Classes, Auto-
boxing and Autounboxing, Java util Classes and Interfaces, Formatter Class, Random Class,
Time Package, Class Instant (java.time.Instant), Formatting for Date/Time in Java,
Temporal Adjusters Class, Temporal Adjusters Class.
Exception Handling: Introduction, Hierarchy of Standard Exception Classes, Keywords
throws and throw, try, catch, and finally Blocks, Multiple Catch Clauses, Class Throwable,
Unchecked Exceptions, Checked Exceptions.
Java I/O and File: Java I/O API, standard I/O streams, types, Byte streams, Character
streams, Scanner class, Files in Java(Text Book 2)
UNIT –5:
String Handling in Java: Introduction, Interface Char Sequence, Class String, Methods for
Extracting Characters from Strings,Comparison, Modifying, Searching; Class String Buffer.
Multithreaded Programming: Introduction, Need for Multiple Threads Multithreaded
Programming for Multi-core Processor, Thread Class, Main Thread Creation of New Threads,
Thread States, Thread Priority-Synchronization, Deadlock and Race Situations, Inter thread
Communication - Suspending, Resuming, and Stopping of Threads. Java Database
Connectivity: Introduction, JDBC Architecture, Installing MySQL and MySQL Connector/J,
JDBC Environment Setup, Establishing JDBC Database Connections, ResultSet Interface
Java FX GUI: Java FX Scene Builder, Java FX App Window Structure, displaying text and
image, event handling, laying out nodes in scene graph, mouse events (Text Book 3 )
COURSE OUTCOMES:
CO2 Design and implement classes to model real-world entities, with PO1, PO2, PO3, PO4,
a focus on attributes, behaviors, and relationships between PO5,PO9,PO12
objects.
CO3 Demonstrate an understanding of inheritance hierarchies and PO1, PO2, PO3, PO4,
polymorphic behavior, including method overriding and PO5, PO9, PO12
dynamic method dispatch.
PO1, PO2, PO3, PO4,
CO4 Apply competence in handling exceptions and errors to write
PO5, PO9, PO12
robust and fault-tolerant code.
PO1, PO2, PO3, PO4,
CO5 Perform file input/output operations, including reading from and
PO5, PO9, PO11,
writing to files using Java I/O classes, graphical user interface
(GUI) programming using JavaFX. PO12
TEXT BOOKS:
1. JAVA one step ahead, Anitha Seth, B.L.Juneja, Oxford.
2. Joy with JAVA, Fundamentals of Object Oriented Programming, DebasisSamanta,
MonalisaSarma, Cambridge, 2023.
3. JAVA 9 for Programmers, Paul Deitel, Harvey Deitel, 4th Edition, Pearson.
REFERENCE BOOKS:
1. The complete Reference Java, 11thedition, Herbert Schildt,TMH
2. Introduction to Java programming, 7th Edition, Y Daniel Liang, Pearson
SREENIVASAINSTITUTEOFTECHNOLOGYANDMANAGEMENTSTUDIES
(Autonomous)
REFERENCE WEBSITE:
1. https://nptel.ac.in/courses/106/105/106105191/
2. https://infyspringboard.onwingspan.com/web/en/app/toc/
lex_auth_012880464547618816347 _shared/overview
CO\PO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO.1 3 3 3 2 3 - - - 2 - 2 2
CO.2 3 2 3 2 3 - - - 2 - 2 2
CO.3 3 2 3 2 2 - - - 2 - - 2
CO.4 3 2 3 2 3 - - - 2 - - 2
CO.5 3 2 3 2 3 - - - 2 - 2 2
CO* 3 3 3 3 3 - - - 2 - 2 2