CS7 : Object
Oriented Programming with Java
( 6 Hours – 4 Credits)
UNIT I
Java Evolution : Java Features – How Java differs from C and C++ -
Java and Internet – Java and World Wide Web – Web Browsers – Hardware and
Software Requirements – Java Environment.
Overview of Java Language: Simple Java Program – Java Program
Structure – Java Tokens- Java Statements – Implementing a Java Program – Java
Virtual Machine – Command Line Arguments.
Constants- Variables- Data types-
Declaration of Variables- Giving Values to variables- Scope of
Variables-Symbolic Constants-Type Casting.
UNIT II
Operators and Expressions: Arithmetic Operators – Relational
Operators- Logical Operators – Assignment Operators – Increment and Decrement
Operators – Conditional Operators – Bitwise Operators – Special Operators –
Arithmetic Expressions – Evaluation of Expressions – Precedence of Arithmetic
Operators – Operator Precedence and Associativity- Mathematical Functions. Decision Making and Branching: Decision
Making with If statement – Simple If Statement-If else Statement-Nesting If
Else Statement- the ElseIf Ladder-The switch Statement – The ?: operator. Decision Making and Looping: The while
statement – The do statement – The for statement – Jumps in Loops. Class, Objects and Methods: Defining a Class –
Fields Declaration – Methods Declaration – Creating Objects – Accessing class
members – Constructors – Methods Overloading – Static Members –Nesting of Methods
– Inheritance – Overriding Methods – Final Variables and Methods – Final
Classes –Finalizer Methods- Abstract Methods and Classes – Visibility Control.
UNIT III
Arrays, Strings and Vectors:
One-dimensional Arrays-creating an Array – Two dimensional Arrays –Strings –
Vectors – Wrapper Classes – Enumerated Types.
Interfaces: Multiple
Inheritance : Defining Interfaces – Extending Interfaces – Implementing
Interfaces – Accessing Interface Variables.
Packages: Java API Packages – Using system Packages – Naming
Conventions – Creating Packages – Accessing a Package – Using a Package –
Adding a Class to a Package – Hiding Classes – Static Import.
UNIT IV
Multithreaded
Programming: Creating Threads – Extending the Thread Class – Stopping and
Blocking a Thread – Life Cycle of a Thread – Using Thread Methods – Thread
Exceptions – Thread Priority – Synchronization-Implementing the Runnable
Interface- Managing Errors and
Exceptions: Types of Errors – Exceptions – Syntax of Exception Handling
Code – Multiple Catch Statements – Using Finally Statement – Throwing our own
Exceptions – Using Exceptions for debugging.
Applet Programming: How Applets differ from Applications –
Preparing to write Applets – Building Applet Code – Applet Life Cycle –
Creating an executable Applet – Designing a WebPage – Applet Tag – Adding
Applet to HTML file – Running the Applet.
UNIT V
Graphics Programming: The Graphics Class- Lines and Rectangles-
Circles and Ellipses, Drawing Arcs-
Drawing Polygons- Line Graphs- Using Control Loops in Applets –Drawing Bar
Charts. Managing
Input/Output Files in Java: Concept of Streams-Stream Classes-Byte Stream
Classes- Character Stream Classes- Using Streams- Other Useful I/O
Classes-Using the file Class- I/O Exceptions- Creation of Files-Reading /
Writing Characters- Reading / Writing Bytes- Handling Primitive Data Types-
Concatenating and Buffering Files-Random Access Files – Interactive Input and
Output.
Text Book
- Programming with Java, A primer, 3e, E. Balagurusamy, TATA McGraw-Hill Company, 2008. (Chapters : 1 to 16 )
UNIT I :
Chapters : 1, 2, 3, 4
UNIT II :
Chapters : 5, 6, 7, 8
UNIT III :
Chapters : 9, 10, 11
UNIT IV :
Chapters : 12, 13, 14)
UNIT V :
Chapters 15, 16
Reference Books
1. Java and Object-Oriented Programming
Paradigm, Debasish Jana, Prentice-Hall of India
Private Limited, New Delhi, 2008.
No comments:
Post a Comment