𝗪𝗵𝗮𝘁 "𝗩" (𝗪𝗘) 𝗟𝗲𝗮𝗿𝗻 𝗘𝗽𝗶𝘀𝗼𝗱𝗲 𝟮 𝗛𝗼𝘄 𝗝𝗮𝘃𝗮 𝗪𝗼𝗿𝗸𝘀 ? 𝗬𝗲𝘀, 𝘆𝗼𝘂 𝗵𝗮𝘃𝗲 𝘄𝗿𝗼𝘁𝗲 𝗮 𝗝𝗮𝘃𝗮 𝗖𝗼𝗱𝗲 𝘀𝗲𝘃𝗲𝗿𝗮𝗹 𝘁𝗶𝗺𝗲 𝗵𝗮𝘃𝗲 𝘆𝗼𝘂 𝗲𝘃𝗲𝗿 𝘁𝗵𝗶𝗻𝗸... • how it works ? • why, need to compile it ? • how it work on any device ? • why, it not run without main function ? • What makes java one of the top language ? These are the some Questions, which come in my mind when i started my Java Journey.... Lets figure out , how it work... 1. Write Java source code (.𝚓𝚊𝚟𝚊) 2. Compile using 𝚓𝚊𝚟𝚊𝚌 → creates bytecode (.𝚌𝚕𝚊𝚜𝚜) 3. Class Loader loads .𝚌𝚕𝚊𝚜𝚜 file into memory 4. Bytecode Verifier checks security & validity 5. JVM interprets or JIT-compiles bytecode 6. Machine code is executed 7. Output is produced Here are 𝗶𝗺𝗽𝗼𝗿𝘁𝗮𝗻𝘁 𝗝𝗮𝘃𝗮 𝗶𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄 𝗤&𝗔 𝗤𝟭. 𝗪𝗵𝘆 𝗝𝗮𝘃𝗮 𝗶𝘀 𝗽𝗹𝗮𝘁𝗳𝗼𝗿𝗺-𝗶𝗻𝗱𝗲𝗽𝗲𝗻𝗱𝗲𝗻𝘁? A. Because Java compiles into 𝗯𝘆𝘁𝗲𝗰𝗼𝗱𝗲, which runs on any 𝗝𝗩𝗠. 𝗤𝟮. 𝗪𝗵𝗮𝘁 𝗵𝗮𝗽𝗽𝗲𝗻𝘀 𝗮𝗳𝘁𝗲𝗿 𝘄𝗿𝗶𝘁𝗶𝗻𝗴 𝗝𝗮𝘃𝗮 𝗰𝗼𝗱𝗲? A. Code → Compile → Bytecode → JVM → Execution → Output. 𝗤𝟯. 𝗪𝗵𝗮𝘁 𝗶𝘀 𝗯𝘆𝘁𝗲𝗰𝗼𝗱𝗲? A. Intermediate code generated by the Java compiler. 𝗤𝟰. 𝗪𝗵𝗮𝘁 𝗶𝘀 𝗝𝗩𝗠? A. JVM executes bytecode and converts it into machine code. 𝗤𝟱. 𝗗𝗶𝗳𝗳𝗲𝗿𝗲𝗻𝗰𝗲 𝗯𝗲𝘁𝘄𝗲𝗲𝗻 𝗝𝗗𝗞 𝗮𝗻𝗱 𝗝𝗥𝗘? A. JDK = Develop + Run, JRE = Run only. 𝗤𝟲. 𝗪𝗵𝗮𝘁 𝗶𝘀 𝗝𝗜𝗧 𝗰𝗼𝗺𝗽𝗶𝗹𝗲𝗿? A. Converts frequently used bytecode into machine code for speed. 𝗤𝟳. 𝗜𝘀 𝗝𝗮𝘃𝗮 𝗰𝗼𝗺𝗽𝗶𝗹𝗲𝗱 𝗼𝗿 𝗶𝗻𝘁𝗲𝗿𝗽𝗿𝗲𝘁𝗲𝗱? A. Both — compiled to bytecode, interpreted by JVM. 𝗤𝟴. 𝗪𝗵𝗮𝘁 𝗶𝘀 𝗖𝗹𝗮𝘀𝘀 𝗟𝗼𝗮𝗱𝗲𝗿? A. Loads .𝚌𝚕𝚊𝚜𝚜 files into JVM memory. 𝗤𝟵. 𝗪𝗵𝘆 𝗯𝘆𝘁𝗲𝗰𝗼𝗱𝗲 𝘃𝗲𝗿𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗶𝘀 𝗻𝗲𝗲𝗱𝗲𝗱? A. For security and code safety. 𝗤𝟭𝟬. 𝗖𝗮𝗻 𝘄𝗲 𝗿𝘂𝗻 𝗝𝗮𝘃𝗮 𝘄𝗶𝘁𝗵𝗼𝘂𝘁 𝗝𝗩𝗠? A. No, JVM is mandatory. #Java #JavaDeveloper #SoftwareEngineering #ComputerScience #LearningInPublic #CareerGrowth #TechCommunity #ProfessionalDevelopment #DhoomBoy #Krish
Mad respect sir, glad you started 🤜
Episode 1 https://www.garudax.id/posts/vanshajgupta01_java-javadeveloper-programming-activity-7417695253941415936-O-Xx?utm_source=share&utm_medium=member_desktop&rcm=ACoAAC0oxwQBwS7zhdFvaQR_maW2xA2V3JLHOqE