-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava.html
More file actions
137 lines (126 loc) · 5.22 KB
/
Copy pathjava.html
File metadata and controls
137 lines (126 loc) · 5.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Java Workshop Portfolio</title>
<style>
body {
font-family: 'Segoe UI', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}
header {
background-color: #6366f1; /* Same purple theme */
color: #fff;
padding: 20px 40px;
text-align: center;
}
main {
padding: 40px;
}
section {
margin-bottom: 40px;
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}
h2 {
color: #6366f1; /* Same purple headings */
}
ul {
padding-left: 20px;
}
.date {
font-weight: bold;
color: #555;
}
</style>
</head>
<body>
<header>
<h1>Java Programming Workshop</h1>
<p>Documented Learning Sessions: From Basics to OOP & Mini Project</p>
</header>
<main>
<section>
<h2>Day 1: Programming Fundamentals</h2>
<p class="date">Duration: 2 hrs</p>
<ul>
<li>Java syntax, variables, operators, loops, and conditionals.</li>
<li>Programs: factorial, prime checking, Fibonacci sequences.</li>
<li>Practiced writing small functions and using control structures.</li>
<li>Learned importance of code readability and comments.</li>
<li><strong>Tips:</strong> Dry-run logic on paper before compiling.</li>
<li><strong>Key Takeaways:</strong> Solid Java basics, solving problems with loops, ready for OOP.</li>
</ul>
</section>
<section>
<h2>Day 2: Functions & Recursion</h2>
<p class="date">Duration: 2 hrs</p>
<ul>
<li>Implemented factorial & Fibonacci using recursion.</li>
<li>Learned base cases, stack behavior, and recursion vs loops.</li>
<li>Broke problems into smaller reusable functions.</li>
<li><strong>Tips:</strong> Monitor stack limits to avoid overflow.</li>
<li><strong>Key Takeaways:</strong> Modular code, recursion foundation for advanced OOP.</li>
</ul>
</section>
<section>
<h2>Day 3: Classes & Objects</h2>
<p class="date">Duration: 2 hrs</p>
<ul>
<li>Created <code>Car</code> class with attributes and methods.</li>
<li>Instantiated multiple objects and simulated behavior.</li>
<li><strong>Tips:</strong> Start small with simple classes first.</li>
<li><strong>Key Takeaways:</strong> Encapsulation of data & behavior, real-world modeling.</li>
</ul>
</section>
<section>
<h2>Day 4: Encapsulation & Abstraction</h2>
<p class="date">Duration: 2 hrs</p>
<ul>
<li>Built <code>BankAccount</code> class with private fields & getters/setters.</li>
<li>Implemented deposit, withdraw, display with validation.</li>
<li>Discussed abstraction & simplifying interfaces.</li>
<li><strong>Tips:</strong> Always validate inputs in setters.</li>
<li><strong>Key Takeaways:</strong> Protected object data, applied abstraction effectively.</li>
</ul>
</section>
<section>
<h2>Day 5: Inheritance</h2>
<p class="date">Duration: 2 hrs</p>
<ul>
<li>Created <code>Person</code> (base) and <code>Student</code> (derived) classes.</li>
<li>Practiced overriding and using <code>super()</code>.</li>
<li><strong>Tips:</strong> Avoid very deep inheritance hierarchies.</li>
<li><strong>Key Takeaways:</strong> Code reuse, understanding parent-child relationships.</li>
</ul>
</section>
<section>
<h2>Day 6: Polymorphism</h2>
<p class="date">Duration: 2 hrs</p>
<ul>
<li>Implemented abstract <code>Shape</code> class with Circle & Rectangle subclasses.</li>
<li>Demonstrated runtime polymorphism with area calculation.</li>
<li><strong>Tips:</strong> Use polymorphism to scale systems and reduce redundancy.</li>
<li><strong>Key Takeaways:</strong> Designed flexible systems, practiced overriding & abstract classes.</li>
</ul>
</section>
<section>
<h2>Day 7: Mini Project – Library Management System</h2>
<p class="date">Duration: 3 hrs</p>
<ul>
<li>Designed <code>Book</code>, <code>Member</code>, and <code>Library</code> classes.</li>
<li>Implemented encapsulation, inheritance, and polymorphism together.</li>
<li>Tested and debugged system end-to-end.</li>
<li><strong>Tips:</strong> Plan class relationships before coding.</li>
<li><strong>Key Takeaways:</strong> Built portfolio-ready OOP project, gained real-world design experience.</li>
</ul>
</section>
</main>
</body>
</html>