๐ Day 30 of My Automation Journey โ Arrays (Full Guide + Tricky Questions)
Todayโs learning was one of the most important milestones in my journey ๐ฅ ๐ Arrays (core concept) ๐ JVM internal behaviour ๐ Memory understanding ๐ Tricky interview questions ๐ Deep dive into...

Source: DEV Community
Todayโs learning was one of the most important milestones in my journey ๐ฅ ๐ Arrays (core concept) ๐ JVM internal behaviour ๐ Memory understanding ๐ Tricky interview questions ๐ Deep dive into public static void main This is where coding becomes real engineering ๐ ๐น PART A โ ARRAYS COMPLETE THEORY ๐น 1. What is an Array? ๐ An array is an object ๐ It is a container that: โ Stores multiple values โ Same data type โ Fixed size ๐น 2. What Happens Internally (JVM ๐ฅ) int[] arr = {10, 20, 30}; ๐ Internally JVM converts: int[] arr = new int[]{10, 20, 30}; ๐ก JVM: Creates object in Heap memory Stores reference in variable ๐น 3. Proof โ Array is an Object System.out.println(arr.getClass()); Output: class [I ๐น 4. Array Creation int[] arr1 = {10, 20, 60, 30}; int[] arr2 = new int[5]; ๐น 5. Important Points โ ๏ธ โ Fixed size โ Index starts from 0 โ Stored in Heap โ Default values assigned ๐น 6. Default Values Type Default int 0 boolean false object null ๐น 7. Initialization & Access a