L T P C
9AI307/
1 Object Oriented Programming using Java
CS3307 2 0 2 3
REAMBLE
P
This course provides learners with in- depth knowledge on Java programming withitscomponentsand
how they work together in applications. Thelearnerswillgetthehands-onexperienceforimplementing
object-oriented designs of desktop and file based applications.
REREQUISITE:
P
19AI304/19CS302
COURSE OUTCOMES
At the end of this course, the learner can able to
CO1 To understand the fundamentals of object oriented programming Understand
CO2 To demonstrate basic object oriented programming concepts Apply
o learn and implement how to extend Java classes with inheritance and
T
CO3 Apply
packages
CO4 To support the process of generalization of data file manipulations Evaluate
CO5 To implement programming techniques to solve problems at critical situation Apply
MAPPING OF COs WITH POs & PSOs
PROGRAMME
PROGRAMME OUTCOMES SPECIFIC
COURSE OUTCOMES
UTCOM
O
ES PO P O P
O P
O P P P P P P P P PS P S P S P S
1
2
3 O
4
O
O
O O O
O O O 1 O 2 O 3 O 4
5 6 7 8 9 1
0 11 1
2
CO1 3 1 - 3 1 - 1 - 1 - 1 1 1 2 - 1
CO2 3 3 - 3 1 - 3 - 1 1 2 1 2 2 - 2
CO3 3 2 - 2 1 - 3 - 1 1 2 2 2 2 1 2
CO4 2 3 - 3 1 1 3 - 1 2 3 3 1 2 1 3
CO5 2 3 - 2 1 1 2 - 1 2 3 3 2 2 2 3
1. LOW 2.MODERATE 3. SUBSTANTIAL
CONCEPT MAP
SYLLABUS
UNIT-I BASICS OF JAVA 12
I ntroduction- Class-Object declaration and initialization; Data types- Primitive data types,
Non-primitive data types, Memory allocation of primitive and non-primitive data types; Variables,
Constants, and Literals- Variable declaration & initialization, local variables, instance variables, and
static variables, Scope and memory allocation of variables; Methods- Method declaration, method
signature, predefinedmethod,user-definedmethods,instancemethod,staticmethod,Callingofmethod,
Return type; Modifiers- Access modifiers, Non-access modifiers; Array- single dimensional array,
multidimensional array, declaration, instantiation, and initialization of array, Passing array to a method.
I mplementation of class and object
Implementation of data types
Implementation of variables
Implementation of local variables, instance variables and static variables
Implementation of user-defined methods
Implementation of instance method
Implementation of static method
Implementation of calling of method
Implementation of access modifiers
Implementation of single dimensional array
Implementation of multidimensional array
Implementation of passing array to a method
UNIT-II STRING, CONSTRUCTOR & KEYWORDS 12
tring- String, Immutable String- String Comparison, String concatenation- Substring- StringBuffer
S
class- StringBuilder class- toString method- StringTokenizer class; Constructor- Default and
Parameterized constructors- constructor overloading- Constructor chaining- Copy constructor; S tatic
Keyword- Static variable- Static method- Static Nested Class; Final keyword- Final variable- Final
method-Finalclass;InnerClass-Propertiesofinnerclass,Instantiatinginnerclass-Normalinnerclass,
Method local inner class, Anonymous inner class; Super keyword- Calling of superclass instance
variable- Superclass constructor- Superclassmethod;thiskeyword-Callingofcurrentclassconstructor
and method.
I mplementation of string operations
Implementation of StringBuffer class
Implementation of StringBuilder class
Implementation of toString method
Implementation of StringTokenizer class
Implementation of constructor
Implementation of constructor overloading
Implementation of constructor chaining
Implementation of Static Keyword
Implementation ofFinal keyword
Implementation ofSuper keyword
Implementation of this keyword
UNIT-III Encapsulation, Inheritance & Packages 12
ncapsulation-HowtoachieveEncapsulation-Datahiding-Tightlyencapsulatedclass-Getterandsetter
E
method- Naming convention of getter and setter method; Inheritance- Is-ARelationship-Aggregation
and Composition(HAS-A)- Types of inheritance: Single level, Multilevel, Hierarchical, and Hybrid
inheritance; Packages- Package naming conventions- Sub packages- user defined packages, built-in
packages- Importing packages.
I mplementation of data hiding
Implementation of tightly encapsulated class
Implementation of getter and setter method
Implementation of Is-A Relationship
Implementation of HAS-A relationship
Implementation of types of inheritance
Implementation of packages
Create a user-defined package
Import package.*
Import package.classname
UNIT-IV POLYMORPHISM ,INTERFACE, IO STREAM & SERIALIZATION 12
olymorphism-Compile-timepolymorphismandRun-timepolymorphism-StaticandDynamicBinding-
P
Method overloading- Methodoverriding- Abstractclass-Abstractmethod;Interface-Nestedinterface,
rules; Garbage Collection; IO Stream- FileOutputStream- FileInputStream- BufferedOutputStream-
BufferedInputStream- ByteArrayOutputStream- ByteArrayInputStream- DataOutputStream-
DataInputStream- Java FilterOutputStream- Java FilterInputStream- StringWriter- StringReader;
Serialization- Serialization, Deserialization, andtransient keyword.
I mplementation of Compile-time polymorphism
Implementation of Run-time polymorphism
Implementation of Static and Dynamic Binding
Implementation ofMethod overloading
Implementation ofMethod overriding
Implementation of Abstract class
Implementation of Abstract method
Implementation of Nested interface
Program to get and set data with the same function using function overloading.
Implementation of abstract class
Implementation of pure virtual function
Implementation of Interface
Implementation of Nested Interface
Implementation of FileOutputStream and FileInputStream
Implementation of BufferedOutputStream and BufferedInputStream
Implementation of ByteArrayOutputStream and ByteArrayInputStream
Implementation of DataOutputStream and DataInputStream
Implementation of Java FilterOutputStream and Java FilterInputStream
Implementation of StringWriter and StringReader
Implementation of serialization
Implementation of deserialization
Implementation of transient keyword
UNIT-V E
XCEPTION HANDLING, THREAD & SYNCHRONIZATION,
12
COLLECTIONS
xception Handling- Try-catch block- Multiple CatchBlock-Nestedtryblock-Finallyblock-Throw-
E
Throws-FinalvsFinallyvsFinalize;Thread-multithreading-Threadscheduler-Sleepingathread-Start
a thread twice- Callingrun()method-Joiningathread-Namingathread-Threadpriority-Threadpool-
Thread group; Synchronization- synchronized method- synchronized block- static synchronization -
UML Diagrams.Collections in Java - List - Set - Queue.
I mplementation of Try-catch block
Implementation of Multiple Catch Block
Implementation of Nested try block
Implementation of Finally block
Implementation of Throw and Throws
Implementation of Final vs Finally vs Finalize
Implementation of Thread by extending Thread class
Implementation of Thread by Runnable interface
Implementation of sleep method
hat if we call run() method directly instead start() method?
W
Implementation of synchronized method
Implementation of synchronized block
Implementation of static synchronization
Implementation of arraylist
Implementation of linkedlist
Implementation of set(Hashset, LinkedHashset, Treeset and Sortedset)
Implementation of queue(Arrayqueue,Deque and Priorityqueue)
TOTAL: 60 PERIODS
LIST OF EQUIPMENTS NEEDED FOR A BATCH OF THIRTY STUDENTS
SLNO DESCRIPTION QTY
1 Hardware – PCs 30
2 JDK 30
TEXT BOOKS
imothy Budd, “Understanding Object-oriented programming with Java”, Updated Edition, Pearson
T
1
Education, 2000
ay S. Horstmann and Gary Cornell, “Core Java: Volume I – Fundamentals”, Eighth Edition, Sun
C
2
Microsystems Press, 2008
3 R. Nageswara Ra, Core Java: An Integrated Approach, Dreamtech Press, 2016
REFERENCES
. Arnold and J. Gosling, “The JAVA programming language”, Third edition, Pearson Education,
K
1
2000.
. Thomas Wu, “An introduction to Object-oriented programming with Java”, Fourth Edition, Tata
C
2
McGraw-Hill Publishing company Ltd., 2006