https://github.com/adwaiy2912/oop-lab
Repository contains various Java programs written for my Object-Oriented Programming (OOP) Lab
https://github.com/adwaiy2912/oop-lab
java java-8 object-oriented-programming oop oops-in-java
Last synced: 6 months ago
JSON representation
Repository contains various Java programs written for my Object-Oriented Programming (OOP) Lab
- Host: GitHub
- URL: https://github.com/adwaiy2912/oop-lab
- Owner: adwaiy2912
- License: mit
- Created: 2025-04-26T14:49:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-26T14:55:32.000Z (about 1 year ago)
- Last Synced: 2025-04-30T17:52:08.831Z (about 1 year ago)
- Topics: java, java-8, object-oriented-programming, oop, oops-in-java
- Language: Java
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OOP Lab Programs
This repository contains various Java programs written for my Object-Oriented Programming (OOP) Lab.
Each folder is organized based on different Java concepts and topics.
## Folder Structure
- **ArrayDemo**
Programs demonstrating one-dimensional and two-dimensional arrays.
- **BoxDemo**
Programs about classes, objects, constructors, and method overloading.
- **DateClassDemo**
Programs using the `Date` and `SimpleDateFormat` classes for working with dates and times.
- **EnumerationWrapperClass**
Examples of using `enum` types and wrapper classes in Java.
- **FileIOPrograms**
Programs covering file handling, reading/writing files, serialization, and directory operations.
- **InitialClasses**
Basic Java programs like Hello World, loops, data type conversions, and command-line input.
- **Others**
Miscellaneous files and test programs.
- **StringClass**
String handling programs using `String` and `StringBuffer` classes.
- **ThreadPrograms**
Programs that demonstrate creating threads, synchronization, and inter-thread communication.
## How to Run
1. Navigate to any `src` folder of the topic you want.
2. Compile the Java file:
```bash
javac FileName.java
```
3. Run the compiled class:
```bash
java ClassName
```
## Notes
- Java version used: **JDK 8+**
- Each folder has a `bin/` directory for compiled `.class` files and a `src/` directory for `.java` source code.
- Focused on understanding and practicing OOP concepts like classes, objects, inheritance, polymorphism, threading, exception handling, and file operations.