Lab codes and practice exercises written while studying Java — covering core language features, GUI development, exception handling, database connectivity, and network programming.
| Folder | Topic |
|---|---|
| Inheritance/ | Class inheritance, method overriding |
| Exception Handling/ | Custom exceptions, try/catch |
| GUI application/ | AWT/Swing apps — calculator, menus, popups, layouts |
| Database/ | JDBC — connecting to and querying MySQL |
| Servlets/ | Jakarta Servlets — sessions, visit counters |
| Network Programming/ | TCP sockets, RMI (Remote Method Invocation) |
| UDP/ | UDP client/server communication |
| Inet_Address/ | InetAddress lookups |
| URL_Processing/ | Parsing and inspecting URL objects |
| Web_Scraping/ | Fetching page content via URLConnection |
Most examples are single-file programs. From within a folder:
javac FileName.java
java FileNameSome require extras:
- Database/ needs a MySQL server and the MySQL Connector/J driver on the classpath.
- Servlets/ needs a servlet container (e.g. Tomcat) with Jakarta Servlet API on the classpath.
- Network Programming/ and UDP/ examples run a server and client in separate terminals.