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
-
4.1 Component, Container, Window, Frame, Panel, Use of AWT Controls: Labels, Buttons, Checkbox, Checkbox Group, TextField, TextArea
- Resource: AWT Tutorial - Tutorialspoint
-
4.2 Use of Layout Managers: FlowLayout, BorderLayout, GridLayout, GridBagLayout, MenuBars, Menus, File Dialog
- Resource: AWT Layouts in Java - Tutorialspoint
-
4.3 Introduction to Swing: Swing Features, Difference Between AWT and Swing
- Resource: Swing Overview - Tutorialspoint
-
4.4 Swing Components: Icons and Labels, TextField, ComboBox, Button, Checkbox, RadioButton
- Resource: Swing Tutorial - Tutorialspoint
-
4.5 Advanced Swing Components: Tabbed Panes, Scroll Panes, Trees, Tables, Progress Bar, Tool Tips
- Resource: Swing Tutorial - Tutorialspoint
-
4.6 Introduction to Event Handling: The Delegation Event Model: Event Sources, Event Listeners
-
4.7 Event Classes: The ActionEvent Class, The ItemEvent Class, The KeyEvent Class, The MouseEvent Class, TextEvent
-
4.8 Event Listener Interfaces: ActionListener, ItemListener, KeyListener, MouseListener, MouseMotionListener, TextListener
Unit V: Basics of Network Programming
-
5.1 Socket Overview: Client/Server, Reserved Sockets, Proxy Servers, Internet Addressing
-
5.2 Java and the Net: The Networking Classes and Interfaces, InetAddress: Factory Methods, Instance Methods
-
5.3 TCP/IP Client and Server Sockets, Datagram Sockets, Datagram Packets
- Resource: Java Networking - Jenkov.com
-
5.4 The URL Class, URLConnection Class
Unit VI: Interacting with Database
-
6.1 Introduction to JDBC, ODBC
- Resource: Lesson: JDBC Basics - Java™ Tutorials
-
6.2 JDBC Architecture: Two-Tier and Three-Tier Models
- Resource: Architecture of ODBC and JDBC - IBM
-
6.3 Types of JDBC Drivers, Class Class, DriverManager Class, Connection Interface, Statement Interface, PreparedStatement Interface, ResultSet Interface
- Resource: JDBC Tutorial - Tutorialspoint
Additional Video Resource
-
Topic: JDBC-ODBC Bridge Architecture