Project Based Learning in Java
Unit 2 Java Programming - Chapters 2.1 to 2.3
Java Database Connectivity (JDBC) is Java's standard interface for connecting to relational databases, issuing statements and reading results.
Collections, multithreading, file handling, functional programming, and JDBC database connectivity.
Semester 5 - 24CSH-301 / 24ITH-301
Unit 2: Collections, I/O, and Functional Programming
Input/Output (I/O) means moving data into or out of a program, for example through a file or a stream.
Create, Read, Update and Delete (CRUD) are the four basic operations used to manage stored records. Model-View-Controller (MVC) separates application data and rules, user-facing presentation, and request or input handling. Data Access Object (DAO) is a component that separates database operations from business logic.
Chapter 2.1 covers collections and multithreading. Chapter 2.2 develops wrapper classes, file I/O, serialisation, object copying, lambdas, method references, and streams. Chapter 2.3 develops JDBC connections, CRUD, transactions, MVC and DAO design, generated keys, and date handling through worked examples.
Course MentorProf. (Dr.) Harish K Mittal
Syllabus Coverage
Java Virtual Machine (JVM) runs Java bytecode, the instructions produced by a Java compiler, and manages runtime tasks such as memory allocation.
- Collection hierarchy, generics, Iterable, and Iterator
- List, ArrayList, and LinkedList
- Map, HashMap, TreeMap, Set, and HashSet
- Thread creation with Thread and Runnable
- Official JVM thread lifecycle states
- sleep, join, interruption, and safe cancellation
- Wrapper classes, autoboxing, unboxing, and parsing
- Byte and character streams, serialisation, and cloning
- Functional interfaces, lambdas, and method references
- Stream pipelines, filtering, mapping, sorting, and reduction
- JDBC architecture, driver configuration, and connections
- Parameterised CRUD, transactions, MVC and DAO design
- Sequences, DUAL, generated keys, and date/time mappings
Chapter 2.1 - Collections and Multithreading
Chapter 2.2 - Wrapper Classes, I/O Streams and Lambda Expressions
Unicode Transformation Format, 8-bit (UTF-8) encodes a Unicode scalar value using one to four bytes. Application Programming Interface (API) defines the operations one software component can use to communicate with another.