Java Programming
Java Programming
Course Outcomes: By the end of the course students will be able to:
CO1. list object oriented characteristics peculiar to JAVA programming. (LOTS: Level 1: Remember)
CO2. describe object-oriented principles and paradigms implemented by Java programming language. (LOTS:
Level 2: Understand)
CO3. apply object-oriented principles for solving problems using JAVA. (LOTS: Level 3: Apply)
CO4. identify classes, interfaces methods, hierarchy in the classes for a given programming problem in JAVA.
(HOTS: Level 4: Analyse)
CO5. design Graphical User Interface applications and Web based applications in Java by importing applet,
AWT and SWING packages. (HOTS: Level 6: Create)
Course Content
Unit I
Object-Oriented Programming Concepts: Object, Classes, Instantiation, Reuse, Procedural and object oriented
programming paradigms, Features of object-oriented programming: Encapsulation, Abstraction, Inheritance, and
Polymorphism.
Java Programming Fundamentals: History of Java, Features of Java architecture, java architecture security,
Garbage collections and Memory Management. Java programming language syntax, constants, variables, data types,
63
operators, expressions .type conversion and casting. Control statements: if-else, for, while, & do-while loops and
switch statements. Methods, constructors, access specifiers and modifiers, Overloading methods and Overloading
constructors. Recursion, building strings, exploring string class.
Unit II
Implementing OOP : Inheritance – Inheritance hierarchies, super and sub classes, super keyword, Implementing
inheritance, overriding methods, and interfaces. Implementing multiple inheritance using interfaces. Polymorphism-
dynamic binding, Method Overriding, Abstract Methods and Classes.
Exception Handling: Exceptions in java, exception classes, built-in exceptions, try, catch and finally statements.
Multiple catch statements, throw and throws statement. Creating and handling user-defined exceptions.
Working with Packages: Packages-Defining, Creating and Accessing a Package, Java API Packages, Using
System Packages, Understanding CLASSPATH, importing packages.
Unit III
Working with GUI: Introduction to an Applet, life cycle of an applet, passing parameters to applets, applet
security issues. AWT and Swing components, Layout Managers.
Event Handling: Delegation event model, event listeners, event handlers. Event classes: ActionEvent, MouseEvent.
Event listeners interfaces: ActionListener, MouseListener, MouseMotionListener, adjustmentListener, TextListener,
WindowListener, ItemListener.
Threads: Multithreading, Thread class and Runnable interface. life cycle of a thread, Thread priority, thread
synchronization.
Unit IV
File Handling: File class and Random Access File class, Input and output streams, character streams, Object
serialization, Serializable interface, Remote Method Invocation (RMI).
Database Connectivity: Introduction to SQL statements, ODBC/JDBC API: Connection, Statements, Prepared
Statements, Record Set and execute statements.
1. Paul Deital, Harvey Deital, JavaTM: How to Program,9th Edition, Pearson Education (Prentice Hall), 2012.
2. Herbert Schildt, JavaTM: The Complete Reference,7th Edition, McGraw-Hill, 2007.
3. Kathy Sierra, Bert Bates, Head First Java, 2nd Edition, O’Reilly, 2005.
4. Ralph Bravaco , Shai Simoson, Java Programming From the Ground Up, Tata McGraw-Hill, 2009.
5. Sachin Malhotra, Saurabh Chaudhary, Programming in Java, Oxford University Press, 2011.
6. E. Balagurusamy, Programming with Java: A Premier, 3rd Edition, Tata McGraw-Hill, New Delhi, 2007.
64