Skip to content

Commit 04bd35e

Browse files
committed
feat: Demonstrate basic array declaration, initialization, and default values in Java
🧠 Logic: - Declares primitive types (`int`, `String`) and introduces array syntax. - Initializes arrays with `new` and shows default values (`int` defaults to 0, `String` to null). - Explains stack vs. heap for array references and objects. - Example includes both individual variables and grouped data using arrays. Signed-off-by: Somesh diwan <[email protected]>
1 parent 6c729b6 commit 04bd35e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Section9ArrayAB/Array IMP/ModificationOfArray.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
public class ModificationOfArray {
2-
32
public static void main(String[] args) {
43
// Q: store a roll number
54
int a = 19;

0 commit comments

Comments
 (0)