This repository is a collection of Java practice projects, small demos, and coursework-style exercises. It starts with Java core concepts and expands into inheritance, collections, exception handling, networking, JDBC, and algorithm drills.
classes/- basic Java syntax, objects, methods, file handling, and small standalone examples.inheritance/- inheritance examples with subclasses such as vehicles, accounts, employees, and products.Interface_abstract/- interface and abstract class practice, including shapes, animals, vehicles, and payment examples.collections/- collection-related exercises, including a small social app example incollections/social_app/.set_map/- set, map, sorting, and student-related practice.exceptionhandling/- custom exceptions and scenarios such as ATM, library, restaurant, and car rental flows.httpworks/- socket and client/server networking experiments.mysql_java_test/- JDBC and MySQL access examples.other_things/- algorithm drills, math exercises, string exercises, and other practice files.
Some files in the repository include a main method and can be run directly:
Testclasses.javaTest_the_classes.javaclasses/Demo.javaclasses/WorkWithFiles.javainheritance/Testinheritances.javacollections/social_app/Main.javahttpworks/SocketServer.javahttpworks/ServerClient.javamysql_java_test/Main.javaother_things/Main.java
Use any recent JDK and run the examples from the repository root.
Example:
javac inheritance/Testinheritances.java inheritance/*.java inheritance/subclasses/*.java
java inheritance.TestinheritancesFor package-based files, compile the package and run the fully qualified class name. For top-level files like Testclasses.java, compile and run them from the project root.
- This project is mainly a learning workspace rather than a single production application.
- Some files are exploratory or duplicated while working through Java concepts.
- The repository currently reflects completed practice on Java core topics, OOP, and SOLID principles, with more experiments added over time.
