Java Programming Exam Preparation Roadmap
Exam Date: 15 April
Target Units: IV, V, VI
Study Duration: 5 days
Required Daily Commitment: 2 to 3 hours minimum


Note - The last 3 units of Java are kinda the “Advanced” Java. It is more than we ever had to learn about a programming language in a semester. So please don’t be like me and start preparing at the beginning of March.

Day 1 — Unit IV Part 1: AWT + Layout Managers + Basic Events

Theory Topics:

  • AWT Components: Component, Container, Frame, Panel, Label, Button, Checkbox, TextField, TextArea

  • Layout Managers: FlowLayout, BorderLayout, GridLayout

  • Event Handling Basics: Delegation Event Model, Event Sources and Listeners

  • Event Classes: ActionEvent, ItemEvent, KeyEvent, MouseEvent, TextEvent

  • Listener Interfaces: ActionListener, ItemListener, KeyListener, MouseListener

Practical Tasks:

  • Implement GUI with basic AWT components

  • Apply FlowLayout, BorderLayout in different frames

  • Write event handling code using ActionListener and KeyListener

Goal: Master structure and interaction of AWT with simple event handling logic


Day 2 — Unit IV Part 2: Swing Components + Events

Theory Topics:

  • Swing Features and Comparison with AWT

  • Swing Components: JLabel, JButton, JTextField, JComboBox, JCheckBox, JRadioButton

  • Swing Events: Use same event model, focus on differences in component behavior

Practical Tasks:

  • Create basic form using Swing components

  • Implement ItemListener and ActionListener in Swing context

  • Practice switching layout managers with Swing containers

Goal: Develop fluency in Swing component usage and event registration


Day 3 — Unit IV Part 3: Advanced Swing + Integration

Theory Topics:

  • Advanced Components: JTabbedPane, JScrollPane, JTable, JTree, JProgressBar, ToolTips, Menus, FileDialog

  • Integration of multiple components in one GUI

  • Handling multiple event types in one class

Practical Tasks:

  • Build a functional multi-tab application with a progress bar and table

  • Use JScrollPane and JTree in combination

  • Implement mouse and key event handling for navigation

Goal: Create a complex interface demonstrating knowledge of layouts and events


Day 4— Unit V: Networking

Theory Topics:

  • Sockets: Client/Server, Reserved Ports, Proxy, Internet Addressing

  • Java Networking Classes: Socket, ServerSocket, InetAddress

  • Communication Mechanisms: TCP, UDP (DatagramSocket, DatagramPacket)

  • URL and URLConnection Classes

Practical Tasks:

  • Implement a basic client-server TCP chat

  • Resolve host using InetAddress and show IP

  • Read content from a URL using URLConnection

Goal: Understand practical network interaction using Java APIs


Day 5— Unit VI: JDBC + Full Review

Theory Topics:

  • JDBC vs ODBC

  • JDBC Architecture: Two-Tier, Three-Tier

  • Driver Types

  • Key Interfaces: DriverManager, Connection, Statement, PreparedStatement, ResultSet

Practical Tasks:

  • Connect Java to a database (SQLite or MySQL)

  • Perform CRUD operations using Statement and PreparedStatement

  • Execute a small program fetching data using ResultSet

Goal: Gain clarity on JDBC flow, class responsibilities, and query execution


Day 6 — Final Touch-Up Before Exam

Early Morning Plan (1.5 Hours Max):

  • Go through one-pager notes per unit

  • Recall all listeners and event classes

  • Revise JDBC flow and Networking class usage

Mental Note:
Walk in like this exam is just another formality.
You already wrote every question in your mind, and now you’re just proving it.


Recommended Resources

Unit IV: Event Handling Using Abstract Window Toolkit (AWT) & Swing Components

Unit V: Basics of Network Programming

Unit VI: Interacting with Database

Additional Video Resource