Commit e4b93dc
committed
feat: add StaticMember example demonstrating static variables, methods, and blocks
Implemented StaticMember.java to illustrate Java's static keyword usage.
Includes a static variable initialized via a static block and modified
through a static method, showcasing class-level data sharing and lifecycle.
Signed-off-by: https://github.com/Someshdiwan <[email protected]>1 parent 8218980 commit e4b93dc
1 file changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments