Course Objectives:
-
- To enable the students to understand the core principles of the Java Language.
- To use visual tools to produce well designed, effective applications and applets.
- To enable students to learn to produce well designed, effective standalone applications.
- To enable students to do socket programming, database handling using JDBC
Course Contents:
Unit I: Introduction to Core Java ——————————————— 7 hours
-
- History of java
- Platform independency
- Introduction to JVM architecture
- Object Oriented features with respect to Java
- Class and Object
- Operators
- Data types
- Arrays
- Inheritance
- Interfaces
- Packages
- Exception Handling
Unit II: Applet As Java Applications —————————————- 4 hours
-
- Introduction to application
- Lifecycle of Applets
- Applets and its methods
- Applet Vs Applications
Unit III: Multi-threading ——————————————————- 4 hours
-
- Introduction to thread
- Multi-threading concepts
- Thread Life cycle
- Creating multi-threaded application
- Thread priorities
- Thread synchronization
Unit IV: Java Input Output —————————————————- 5 hours
-
- Java IO package
- Byte/Character Stream
- Buffered reader / writer
- File reader / writer
- Print writer
- File Sequential / Random
Unit V: Java GUI Components ———————————————– 10 hours
-
- Containers
- Frames and Panels
- Layout manager
- Introduction to Netbeans IDE
- Event delegation Model
- Event source and handler
- Event categories
- Listeners
- Interfaces
- Adaptor classes
- Swing Libraries
- Model View Controller design pattern
- Different layout
- All swing components
Unit VI: Networking with Java ———————————————— 6 hours
-
- Networking basics
- Sockets
- Port
- Proxy servers
- Internet addressing URL
- java.net:
- Networking classes and Interfaces
- Implementing TCP/IP based Server and Client
- Datagrams:
- Datagram packet,
- Datagram server and client
- Connections
Unit VII: JDBC ——————————————————————- 6 hours
-
- Java database connectivity
- Types of JDBC drivers
- Writing first JDBC applications
- Types of statement objects:
- Statement
- PreparedStatement
- CallableStatement
- Types of resultset
- ResultSetMetadata
- CRUD operations in database
- JDBC and AWT
- Connection pooling
Unit VIII: Generics ————————————————————– 6 hours
-
- Introduction to generics
- Generics class with parameters
- General form of a generic class
- Creating a generic method
- Constructors
- Interfaces
- Polymorphism in generics
Laboratory:
-
- Demonstrate uses of arrays, operators.
- Write a java code to demonstrate inheritance, multilevel inheritance, multiple inheritance using interfaces, creation and use of own packages.
- Demonstrate exception handling (try-catch-finally, throws etc).
- Create an Applet and embedded it in HTML page.
- Demonstrate multi-threading
- Demonstrate sequential and random reading and writing of files
- Design AWT/Swing form with all swing controls.
- Demonstrate TCP and UDP based client server connection.
- Demonstrate CRUD operations of database with help of AWT/Swing controls
- Demonstrate use of generic method, constructors and interfaces
Text Book:
-
- Herbert Schildt, Java The Complete Reference, Tata McGraw Hill Edition
Reference Books:
-
- Kogent, Java 6 Programming Black Book, Dreamtech Publication
- Cay S Horstmann, Fary Cornell Core Java 2 Volume – I, Sun Microsystem press
- Cay S Horstmann, Fary Cornell Core Java 2 Volume – II, Sun Microsystem press
- E.Balguruswami Programming with Java, A Primer, Tata McGraw Hill Edition