BCS5B08|Java Programming


Course Number: 26

Contact Hours per Week: 6 (3T + 3L)

Number of Credits: 4

Number of Contact Hours: 90 Hrs.

Course Evaluation: Internal: 20 Marks + External: 80 Marks

Objectives

 To review on concept of OOP.

 To learn Java Programming Environments.

 To practice programming in Java.

 To learn GUI Application development in JAVA.

Prerequisites

 Knowledge in OOP & Programming

Course Outline

Unit I [7 T + 4 L]

Introduction to OOPS, Characteristics of OOPS, Object oriented languages, comparison between procedural and object oriented programming, basic principles of Object Orientation-class, object, abstraction, encapsulation, inheritance, polymorphism, modularity, and message passing. Features of object orientation - attributes, state, identity, operation, behaviour.

Unit II [8 T + 8 L]

Introduction to Java: History, Versioning, The Java Virtual Machine, Byte code, Writing simple java program, Language Components: Primitive Data Types, Comments, Keywords, literals, The if Statement, The switch Statement, The for Statement, The while and do while Statements, The break Statement, The continue Statement, Operators – Casts and Conversions, Arrays. Introduction to classes and methods, constructors, Passing Objects to Methods, Method Overloading, Static and final, The this Reference, finalize, inner and nested classes. Inheriting class, extends, member access and inheritance, super keyword, Object class. Dynamic method dispatch, method overriding, abstract class, interface, packages, import statement.

Unit III [10 T + 10 L]

Exceptions, I/O and Threads Input and Output in Java: The File Class, Standard Streams, Keyboard Input, File I/O Using Byte Streams, Character Streams, File I/O Using Character Streams - Buffered Streams, File I/O Using a Buffered Stream, Keyboard Input Using a Buffered Stream, Writing Text Files. Threads: Threads vs. Processes, Creating Threads by Extending Thread, Creating Threads by Implementing Runnable, Advantages of Using Threads, Daemon Threads, Thread States, Thread Problems, Synchronization. Exceptions: Exception Handling, The Exception Hierarchy, throws statement, throw statement, Developing user defined Exception Classes- The finally Block.

Unit IV [10 T + 12 L]

Database Connectivity & Applets: Introduction to JDBC : The JDBC Connectivity Model, Database Programming, Connecting to the Database, Creating a SQL Query, Executing SQL Queries, Getting the Results, Updating Database Data, Executing SQL Update/Delete, The Statement Interface, The ResultSet Interface, ResultSetMetaData. Introduction to GUI Applications - Applets - Types of Applet, Applet Skeleton, Update method, repaint MethodsHtml Applet tag and passing parameter to applet.

Unit V [10 T + 11 L]

Events and GUI Applications: Event Handling: The Delegation Event Model, Event Classes, Event Listener Interfaces, Adapter Classes. Java Desktop Applications, Introduction to the AWT, Overview of the AWT, Structure of the AWT, The AWT hierarchy, Containers, Components, Canvas, Frame Working with: Color, Font, FontMetrics, Simple Graphics- Point, line, Rectangle, Polygon, Controls - Button, , Checkbox, Choice, , Label, List, Scroll bar, TextArea, TextField, Layout Manager, MenuBar, Menu, MenuItem , Checkbox MenuItem.

Text Books

1. Herbert Scheldt, Java The Complete Reference, 8th Edition, Tata McGraw-Hill Edition, ISBN: 9781259002465

References

1. E Balaguruswamy, Programming in Java: A Primer, 4th Edition, Tata Mcgraw Hill Education Private Limited, ISBN: 007014169X.

2. Kathy Sierra, Head First Java, 2nd Edition, Shroff Publishers and Distributors Pvt Ltd, ISBN: 8173666024.

3. David Flanagan, Jim Farley, William Crawford and Kris Magnusson, Java Enterprise in a Nutshell: A Desktop Quick Reference, 3rd Edition, O'Reilly Media, ISBN: 0596101422.


javaimage.pngjavaimage.png