A collection of lab assignments and practice programs from my B.Sc. Computer Science Java coursework.
This repository is focused on strengthening object-oriented programming concepts and enhancing problem-solving skills.
It documents my weekly progress and practice programs in Java, organized to gradually build proficiency from fundamental to advanced concepts.
-
Week 1 – Official Documentation & Resources
Contains links and references to official Java documentation and additional practice resources. -
Week 2 – Introduction & Software Requirements
Basics of setting up the development environment and requirements for working with HTML, JavaScript, PHP, and Java programs. -
Week 3 – Basic Problems in Java
Simple programs to practice Java syntax, input/output handling, and fundamental problem-solving. -
Week 4 – Conditional & Looping Problems
Programs based onifstatements and various looping constructs. -
Week 5 – Arrays in Java
Problems focused on array creation, traversal, manipulation, and basic algorithms. -
Week 6 – Combined Concepts
Practice problems integratingifstatements, loops, and arrays. -
Week 7 – Advanced Combined Concepts
Programs involvingifstatements, loops, arrays, and strings. -
Week 8 – Object-Oriented Concepts
Problems focusing on classes, objects, and constructors in Java. -
Week 9 – Interfaces, Abstract Classes, Statics, Inheritance
Programs covering interfaces, abstract classes, static members, and inheritance concepts. -
Week 10 – Classes, Inner Classes & Methods
Programs involving:- Creating classes such as
Person - Inner and static classes
- Writing two or more methods and calling all other methods from the
mainmethod
- Creating classes such as
-
Week 11 – Interfaces Only
Focused on creating and implementing interfaces. -
Week 12 – Exception Handling
Programs covering:- Methods that throw exceptions such as
ArithmeticException(unchecked exception) - Creating custom exceptions
- Methods that throw exceptions such as
-
Week 13 – File Handling in Java
Programs including:- Creating and writing files
- Copying content from one file to another
- Counting total number of characters and lines
-
Week 14 – JDBC & Database Connectivity
Programs to connect with a database using JDBC or any other Java database API.
- Clone the repository:
git clone https://github.com/sadiapeerzada/java-program.git javac FileName.java java FileName
-
JDK 8 or above
-
Any IDE or text editor (Eclipse, IntelliJ IDEA, VS Code, Notepad++, etc.)
Each week has a separate folder for better organization.
Code is intended for practice and learning purposes.
The repository will continue to be updated as progress is made.