How sadeeshajayaweera/java-practical-codes- works
Project type and purpose
• This is a Java OOP practice repository. It is not a production service or full-stack app but a collection of code examples and Word-doc exercises organized by OOP topics.
File structure
• Top-level folders correspond to core OOP topics: Introduction, Encapsulation, Inheritance, Interfaces, Polymorphism, Exception Handling.
• Each folder contains .java source files and a .docx (or .pdf) showing exercise instructions and explanations.
• There are no deployment scripts, database configs, or external-service stubs. It’s purely code + documentation.
README
• Explains that this is a learning repo, listing six topics.
• Mentions that each topic has a Word doc with code snippets and explanations.
• No runtime architecture is described because this is sample code.
Detailed breakdown of components
– Developer Environment (parallelogram): user writes code, reads docs.
– Java Compiler (gear): javac → .class files → JVM.
• Introduction: HelloWorld.java, DegreeName.java, etc.
• Encapsulation: Encapsulation.java, EncapTest.java.
• Inheritance: Animal.java, Dog.java, Mammal.java, etc.
• Interfaces: (if present) interface examples.
• Exception Handling: Date.java, DateTest.java, SavingsAccount.java, etc.
• Docs → Developer Environment → Code in Modules → Java Compiler → Runtime.