<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Arunathejaswini on Medium]]></title>
        <description><![CDATA[Stories by Arunathejaswini on Medium]]></description>
        <link>https://medium.com/@arunathejaswini09?source=rss-ab456ff9bfab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BnGuhAv0eXfya4bz</url>
            <title>Stories by Arunathejaswini on Medium</title>
            <link>https://medium.com/@arunathejaswini09?source=rss-ab456ff9bfab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 13:44:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arunathejaswini09/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What does ACID mean?]]></title>
            <link>https://medium.com/@arunathejaswini09/what-does-acid-mean-2c97c9838ce8?source=rss-ab456ff9bfab------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c97c9838ce8</guid>
            <dc:creator><![CDATA[Arunathejaswini]]></dc:creator>
            <pubDate>Sun, 15 Dec 2024 15:30:01 GMT</pubDate>
            <atom:updated>2024-12-15T15:30:01.291Z</atom:updated>
            <content:encoded><![CDATA[<p>𝑼𝒏𝒅𝒆𝒓𝒔𝒕𝒂𝒏𝒅𝒊𝒏𝒈 𝑨𝑪𝑰𝑫 𝒊𝒏 𝑫𝒂𝒕𝒂𝒃𝒂𝒔𝒆 𝑻𝒓𝒂𝒏𝒔𝒂𝒄𝒕𝒊𝒐𝒏𝒔</p><p>𝑾𝒉𝒂𝒕 𝑫𝒐𝒆𝒔 𝑨𝑪𝑰𝑫 𝑴𝒆𝒂𝒏?</p><p>ACID is a set of four fundamental properties that ensure database transactions are reliable and robust. It stands for:<br>Atomicity<br>Consistency<br>Isolation<br>Durability</p><p>These properties guarantee data integrity, especially in scenarios where multiple operations or failures occur. Let’s break each property down with examples and context:</p><p>𝑨𝒕𝒐𝒎𝒊𝒄𝒊𝒕𝒚: “𝑨𝒍𝒍 𝒐𝒓 𝑵𝒐𝒕𝒉𝒊𝒏𝒈”</p><p>Atomicity ensures that every part of a transaction is executed completely or not at all. If any step in a transaction fails, the entire transaction is rolled back, leaving the database unchanged.</p><p>💡 Example: Transferring $100 from Account A to Account B. If debiting from A succeeds but crediting to B fails, the $100 debit is undone to maintain consistency.</p><p>Consistency: Validating Database Rules<br>Consistency ensures that a transaction brings the database from one valid state to another by maintaining its predefined rules (constraints, triggers, etc.).</p><p>💡 Example: If a database rule mandates that all orders must have valid customer IDs, a transaction inserting an order without a customer ID will fail to preserve consistency.</p><p>𝑰𝒔𝒐𝒍𝒂𝒕𝒊𝒐𝒏: 𝑨𝒗𝒐𝒊𝒅𝒊𝒏𝒈 𝑪𝒐𝒏𝒇𝒍𝒊𝒄𝒕𝒔 𝒊𝒏 𝑪𝒐𝒏𝒄𝒖𝒓𝒓𝒆𝒏𝒕 𝑻𝒓𝒂𝒏𝒔𝒂𝒄𝒕𝒊𝒐𝒏𝒔</p><p>Isolation ensures that multiple concurrent transactions don’t interfere with each other. Even if transactions are running simultaneously, they behave as if they were executed sequentially.</p><p>🔑 𝑻𝒚𝒑𝒆𝒔 𝒐𝒇 𝑰𝒔𝒐𝒍𝒂𝒕𝒊𝒐𝒏 𝑳𝒆𝒗𝒆𝒍𝒔:</p><p>Serializable: Highest level, ensures complete isolation but may reduce performance.<br>Read Committed: A transaction only sees data committed by others.<br>Read Uncommitted: Allows reading uncommitted changes, but risks dirty reads.</p><p>💡 Example: Two users simultaneously withdrawing from the same account won’t affect each other’s balance due to proper isolation.</p><p>Durability: Ensuring Data Persistence<br>Durability guarantees that once a transaction is committed, the changes are permanent, even if there’s a power loss or system crash.</p><p>💡 Example: After successfully booking a ticket, the record persists even if the system fails moments later.</p><p>𝑾𝒉𝒚 𝒊𝒔 𝑨𝑪𝑰𝑫 𝑰𝒎𝒑𝒐𝒓𝒕𝒂𝒏𝒕?</p><p>In modern databases, particularly relational databases like MySQL, PostgreSQL, or Oracle, ACID ensures:<br>1️⃣ Data Integrity: Even in case of crashes or power failures.<br>2️⃣ Concurrent Operations: Enables multiple users to perform actions simultaneously without conflict.<br>3️⃣ Error Recovery: Protects against partial updates or corruption</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c97c9838ce8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring, Spring Boot, and microservices:]]></title>
            <link>https://medium.com/@arunathejaswini09/spring-spring-boot-and-microservices-923dcc1b77ca?source=rss-ab456ff9bfab------2</link>
            <guid isPermaLink="false">https://medium.com/p/923dcc1b77ca</guid>
            <dc:creator><![CDATA[Arunathejaswini]]></dc:creator>
            <pubDate>Tue, 10 Dec 2024 22:18:18 GMT</pubDate>
            <atom:updated>2024-12-10T22:18:18.637Z</atom:updated>
            <content:encoded><![CDATA[<p>Spring, Spring Boot, and microservices:</p><h3>1. Prerequisites</h3><p>Before diving into Spring, ensure you’re comfortable with:</p><ul><li><strong>Java basics</strong>: OOP concepts, data structures, exception handling, and Java 8+ features (streams, lambda expressions, functional interfaces).</li><li><strong>Maven/Gradle</strong>: Understand dependency management tools.</li><li><strong>IDE setup</strong>: Eclipse, IntelliJ IDEA, or VS Code.</li></ul><h3>2. Core Java Knowledge</h3><p>Deepen your understanding of the following:</p><ul><li><strong>JDBC</strong>: Basics of database connectivity.</li><li><strong>Multithreading</strong>: Threads, synchronization, and concurrency.</li><li><strong>Networking</strong>: HTTP protocol basics and REST APIs.</li></ul><h3>3. Spring Framework</h3><p>Start with the Spring ecosystem:</p><h4>a. Core Concepts</h4><ul><li>Understand Dependency Injection (DI) and Inversion of Control (IoC).</li><li>Learn about Spring Beans and the ApplicationContext.</li><li>Explore Spring Configuration: XML-based and Java-based configuration.</li></ul><h4>b. Spring Modules</h4><ul><li><strong>Spring AOP</strong>: Learn cross-cutting concerns like logging and transaction management.</li><li><strong>Spring Data</strong>: Understand working with databases (JPA/Hibernate).</li><li><strong>Spring Security</strong>: Basics of authentication and authorization.</li></ul><h4>c. Hands-on Practice</h4><ul><li>Build a simple CRUD application using Spring.</li><li>Use MySQL/PostgreSQL as the database.</li></ul><h3>4. Spring Boot</h3><p>Spring Boot simplifies application setup and development:</p><h4>a. Core Features</h4><ul><li>Understand auto-configuration and starters.</li><li>Learn about the application.properties or application.yml files.</li><li>Familiarize yourself with the embedded server (Tomcat, Jetty).</li></ul><h4>b. RESTful APIs</h4><ul><li>Learn to build REST APIs using Spring Boot.</li><li>Handle GET, POST, PUT, DELETE HTTP methods.</li><li>Use tools like Postman to test APIs.</li></ul><h4>c. Database Integration</h4><ul><li>Work with Spring Data JPA for ORM.</li><li>Use Flyway/Liquibase for database migrations.</li></ul><h4>d. Error Handling</h4><ul><li>Implement custom exception handling and error codes in your APIs.</li></ul><h3>5. Microservices Architecture</h3><p>Microservices involve multiple independent services:</p><h4>a. Key Concepts</h4><ul><li>Understand the basics of microservices and how they differ from monolithic applications.</li><li>Study REST principles and stateless communication.</li></ul><h4>b. Spring Boot for Microservices</h4><ul><li>Learn Spring Cloud features for microservices:</li><li><strong>Service Discovery</strong>: Eureka</li><li><strong>API Gateway</strong>: Zuul or Spring Cloud Gateway</li><li><strong>Load Balancing</strong>: Ribbon</li><li><strong>Configuration Management</strong>: Spring Cloud Config Server</li><li><strong>Fault Tolerance</strong>: Resilience4j or Hystrix</li></ul><h4>c. Communication</h4><ul><li>Understand synchronous (REST) and asynchronous communication (Kafka or RabbitMQ).</li><li>Use OpenFeign for service-to-service calls.</li></ul><h4>d. Database Design</h4><ul><li>Study database patterns for microservices (Database per service, shared databases, etc.).</li></ul><h3>6. Advanced Microservices Concepts</h3><h4>a. Security</h4><ul><li>Learn OAuth2 and JWT with Spring Security.</li><li>Implement role-based access control.</li></ul><h4>b. Monitoring and Observability</h4><ul><li>Use tools like Prometheus, Grafana, and Zipkin for monitoring and distributed tracing.</li></ul><h4>c. Deployment</h4><ul><li>Containerize applications using Docker.</li><li>Orchestrate with Kubernetes.</li><li>Implement CI/CD pipelines.</li></ul><h3>7. Hands-on Projects</h3><p>Work on real-world projects to integrate everything you’ve learned:</p><ul><li><strong>Simple Project</strong>: Employee management system with REST APIs.</li><li><strong>Intermediate Project</strong>: E-commerce backend with multiple microservices.</li><li><strong>Advanced Project</strong>: Build a social media backend with user, post, and comment services using distributed tracing and event-driven architecture.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=923dcc1b77ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Versions and their Enhancements:]]></title>
            <link>https://medium.com/@arunathejaswini09/java-versions-and-their-enhancements-fe2a331d7d2e?source=rss-ab456ff9bfab------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe2a331d7d2e</guid>
            <dc:creator><![CDATA[Arunathejaswini]]></dc:creator>
            <pubDate>Tue, 10 Dec 2024 21:18:18 GMT</pubDate>
            <atom:updated>2024-12-10T21:18:18.763Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Java Versions and their Enhancements:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G0kAqlVLEgnNQOyl2TmdbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dq0rLnKWNczCEicAFZ8_0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qttFYl0nKnK7NMrxNAwYKw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe2a331d7d2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[List of CoreJava Topics:]]></title>
            <link>https://medium.com/@arunathejaswini09/list-of-corejava-topics-52bc3e274908?source=rss-ab456ff9bfab------2</link>
            <guid isPermaLink="false">https://medium.com/p/52bc3e274908</guid>
            <dc:creator><![CDATA[Arunathejaswini]]></dc:creator>
            <pubDate>Sat, 07 Dec 2024 23:18:51 GMT</pubDate>
            <atom:updated>2024-12-07T23:18:51.060Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s a detailed list of <strong>Core Java topics</strong> you should learn to build a strong foundation:</p><h3>1. Basics of Java Programming</h3><ul><li>History of Java and its Features</li><li>JVM, JRE, and JDK</li><li>Structure of a Java Program</li><li>How Java Code is Compiled and Run</li></ul><h3>2. Data Types and Variables</h3><ul><li>Primitive and Non-Primitive Data Types</li><li>Type Casting and Type Conversion</li><li>Constants and Literals</li><li>Variable Scope</li></ul><h3>3. Operators</h3><ul><li>Arithmetic, Relational, Logical, and Bitwise Operators</li><li>Increment and Decrement Operators</li><li>Ternary Operator</li><li>instanceof Operator</li></ul><h3>4. Control Flow Statements</h3><ul><li>Decision-Making: if, if-else, switch</li><li>Loops: for, while, do-while</li><li>Break and Continue Statements</li></ul><h3>5. Object-Oriented Programming (OOPs)</h3><ul><li>Classes and Objects</li><li>Constructors (Default, Parameterized, Copy)</li><li>this and super Keywords</li><li>Encapsulation, Inheritance, Polymorphism, and Abstraction</li><li>Method Overloading and Overriding</li><li>Access Modifiers: private, protected, default, public</li></ul><h3>6. Arrays and Strings</h3><ul><li>Declaration, Initialization, and Accessing Arrays</li><li>Multidimensional Arrays</li><li>String Class and String Methods</li><li>StringBuilder and StringBuffer</li></ul><h3>7. Exception Handling</h3><ul><li>Types of Exceptions: Checked vs. Unchecked</li><li>try, catch, finally, throw, and throws</li><li>Custom Exceptions</li><li>Exception Hierarchy</li></ul><h3>8. Java Collections Framework</h3><ul><li>List, Set, Map Interfaces</li><li>ArrayList, LinkedList, HashSet, LinkedHashSet</li><li>HashMap, LinkedHashMap, TreeMap</li><li>Iterator and Stream API</li></ul><h3>9. File I/O and Serialization</h3><ul><li>File Handling using File, FileReader, and FileWriter</li><li>Byte Streams and Character Streams</li><li>Serialization and Deserialization</li></ul><h3>10. Threads and Multithreading</h3><ul><li>Life Cycle of a Thread</li><li>Runnable Interface and Thread Class</li><li>Synchronization and Locks</li><li>Inter-thread Communication</li><li>Deadlock and Thread Safety</li></ul><h3>11. Generics</h3><ul><li>Type Safety with Generics</li><li>Generic Methods and Classes</li><li>Wildcards in Generics (? extends, ? super)</li></ul><h3>12. Functional Programming (Java 8+)</h3><ul><li>Lambda Expressions</li><li>Functional Interfaces (e.g., Predicate, Consumer, Supplier)</li><li>Stream API</li><li>Optional Class</li><li>Method References</li></ul><h3>13. Java Annotations</h3><ul><li>Built-in Annotations: @Override, @Deprecated, @FunctionalInterface</li><li>Custom Annotations</li></ul><h3>14. Java Utility Classes</h3><ul><li>Math, Random, Scanner</li><li>Date, Calendar, Time, LocalDate (Java 8 Date-Time API)</li><li>StringTokenizer</li></ul><h3>15. Miscellaneous Topics</h3><ul><li>Inner Classes and Anonymous Classes</li><li>Static and Final Keywords</li><li>Enum and Wrapper Classes</li><li>Java Modules (introduced in Java 9)</li><li>Garbage Collection and Memory Management</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52bc3e274908" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JVM,JDK&JRE]]></title>
            <link>https://medium.com/@arunathejaswini09/jvm-jdk-jre-890021034188?source=rss-ab456ff9bfab------2</link>
            <guid isPermaLink="false">https://medium.com/p/890021034188</guid>
            <dc:creator><![CDATA[Arunathejaswini]]></dc:creator>
            <pubDate>Sat, 07 Dec 2024 22:38:20 GMT</pubDate>
            <atom:updated>2024-12-07T22:38:20.957Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s a clear explanation of <strong>JVM, JRE, and JDK</strong> and their roles in Java development:</p><h3>1. JVM (Java Virtual Machine)</h3><p><strong>Definition:</strong><br>JVM is a runtime environment that executes Java bytecode. It acts as an interpreter between the compiled Java code and the underlying machine’s hardware.</p><p><strong>Key Points:</strong></p><ul><li>Converts <strong>bytecode</strong> (compiled .class files) into <strong>machine code</strong> for execution.</li><li>Handles tasks like memory management (Garbage Collection) and exception handling.</li><li>Platform-dependent (different JVM implementations exist for different operating systems).</li></ul><h3>2. JRE (Java Runtime Environment)</h3><p><strong>Definition:</strong><br>JRE is a software package that provides the libraries and JVM needed to run Java applications. It’s designed for users who only need to <strong>run Java programs</strong>, not develop them.</p><p><strong>Key Points:</strong></p><ul><li>Includes:</li><li><strong>JVM</strong> (for executing Java applications).</li><li><strong>Class Libraries</strong> (standard Java API classes like java.util, java.io).</li><li>Does not include development tools like a compiler or debugger.</li><li>If you’re only running Java applications, you only need the JRE.</li></ul><h3>3. JDK (Java Development Kit)</h3><p><strong>Definition:</strong><br>JDK is a software development kit that provides tools for developing Java applications. It includes the JRE and additional tools necessary for coding and compiling Java programs.</p><p><strong>Key Points:</strong></p><ul><li>Includes:</li><li><strong>JRE</strong> (JVM + Libraries).</li><li><strong>Compiler (</strong><strong>javac)</strong> for converting source code (.java) into bytecode (.class).</li><li>Development tools like <strong>debuggers</strong>, <strong>JavaDoc</strong>, and <strong>JavaFX</strong>.</li><li>Essential for Java developers.</li></ul><h3>Relationship Between JVM, JRE, and JDK</h3><ul><li><strong>JVM</strong>: Executes the bytecode (core of Java runtime).</li><li><strong>JRE</strong>: JVM + Standard Libraries (for running Java applications).</li><li><strong>JDK</strong>: JRE + Development Tools (for writing and running Java programs).</li></ul><h3>Example</h3><p>If you write a Java program:</p><ol><li><strong>You write code</strong> in .java files.</li><li>The <strong>JDK compiler (</strong><strong>javac)</strong> converts .java to .class (bytecode).</li><li>The <strong>JVM</strong>, as part of the <strong>JRE</strong>, executes the bytecode.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=890021034188" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[REST API:]]></title>
            <link>https://medium.com/@arunathejaswini09/rest-api-e9b184ddb600?source=rss-ab456ff9bfab------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9b184ddb600</guid>
            <category><![CDATA[rest-api]]></category>
            <dc:creator><![CDATA[Arunathejaswini]]></dc:creator>
            <pubDate>Sat, 07 Dec 2024 22:13:46 GMT</pubDate>
            <atom:updated>2024-12-07T22:13:46.937Z</atom:updated>
            <content:encoded><![CDATA[<h4>Summary</h4><p>REST APIs enable web apps to communicate with servers using standard HTTP methods and unique URIs, promoting scalability and backward compatibility.</p><h4>Highlights</h4><ul><li>🌐 REST stands for Representational State Transfer.</li><li>📡 Common method for web apps to communicate with servers.</li><li>🔗 Organizes resources into unique URIs.</li><li>✉️ Uses HTTP methods: POST (create), GET (read), PUT (update), DELETE (remove).</li><li>✅ Responses include HTTP status codes (200 for success, 400 for client errors, 500 for server errors).</li><li>📈 APIs should be designed for easy scaling.</li><li>🔄 Use versioning for backward compatibility.</li></ul><h4>Key Insights</h4><ul><li>🌍 <strong>Understanding REST</strong>: REST APIs provide a standardized way for applications to communicate, enhancing interoperability across different platforms.</li><li>🔗 <strong>Unique URIs</strong>: By organizing resources with unique URIs, REST APIs ensure clear and efficient access to data, streamlining development.</li><li>⚙️ <strong>HTTP Methods</strong>: The use of standard HTTP methods simplifies interactions, making it easier for developers to perform CRUD operations within applications.</li><li>📊 <strong>Status Codes</strong>: Incorporating HTTP status codes helps clients understand the outcome of their requests, improving error handling and user experience.</li><li>🚀 <strong>Scalability</strong>: Designing APIs for scalability is crucial in accommodating growing user demands without compromising performance.</li><li>🛠️ <strong>Versioning Importance</strong>: Versioning APIs ensures that existing applications continue to function while allowing new features and improvements to be integrated seamlessly.</li><li>🔒 <strong>Security Considerations</strong>: While not mentioned, security in REST APIs through authentication and authorization is vital in safeguarding data and interactions.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9b184ddb600" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Versioning APIs]]></title>
            <link>https://medium.com/@arunathejaswini09/versioning-apis-a819147810cc?source=rss-ab456ff9bfab------2</link>
            <guid isPermaLink="false">https://medium.com/p/a819147810cc</guid>
            <dc:creator><![CDATA[Arunathejaswini]]></dc:creator>
            <pubDate>Sat, 07 Dec 2024 21:42:54 GMT</pubDate>
            <atom:updated>2024-12-07T21:42:54.342Z</atom:updated>
            <content:encoded><![CDATA[<p>Versioning APIs</p><p><strong>Versioning APIs</strong> refers to the practice of managing changes to an API while ensuring that existing clients or consumers of the API continue to function as expected. It is a technique used to introduce new features or modifications to an API without breaking compatibility for clients relying on older versions.</p><h3>Why Versioning APIs is Important</h3><ol><li><strong>Backward Compatibility:</strong> Ensures older clients can still interact with the API without requiring immediate updates.</li><li><strong>Change Management:</strong> Allows developers to introduce improvements or changes without disrupting existing consumers.</li><li><strong>Flexibility:</strong> Enables support for multiple API versions simultaneously, catering to different client needs.</li><li><strong>Clear Communication:</strong> Provides clarity to users about the changes and which version to use.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a819147810cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference between Compilation and Execution in Java:]]></title>
            <link>https://medium.com/@arunathejaswini09/difference-between-compilation-and-execution-in-java-f694609175d8?source=rss-ab456ff9bfab------2</link>
            <guid isPermaLink="false">https://medium.com/p/f694609175d8</guid>
            <dc:creator><![CDATA[Arunathejaswini]]></dc:creator>
            <pubDate>Fri, 06 Dec 2024 20:08:31 GMT</pubDate>
            <atom:updated>2024-12-06T20:08:31.815Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Difference between Compilation and Execution in Java:</strong></p><h3>1. Compilation</h3><ul><li><strong>Definition</strong>: The process of converting Java source code (written in .java files) into bytecode (contained in .class files).</li><li><strong>Tool Used</strong>: javac (Java Compiler).</li><li><strong>Output</strong>: Generates platform-independent <strong>bytecode</strong> that can run on any machine with a compatible JVM.</li><li><strong>Purpose</strong>: Ensures the source code is syntactically correct and ready for execution.</li><li><strong>Errors Detected</strong>:</li><li>Syntax errors</li><li>Type mismatches</li><li>Missing classes or methods</li><li>Other compile-time errors</li></ul><h3>2. Execution</h3><ul><li><strong>Definition</strong>: The process of running the compiled bytecode (.class file) on the Java Virtual Machine (JVM), which translates it into machine-specific instructions.</li><li><strong>Tool Used</strong>: java command (JVM runtime).</li><li><strong>Output</strong>: The actual program runs, and you see results/output of the program.</li><li><strong>Purpose</strong>: Executes the logic of the program defined in the source code.</li><li><strong>Errors Detected</strong>:</li><li>Runtime errors (e.g., NullPointerException, ArrayIndexOutOfBoundsException)</li><li>Logical errors in program behavior</li></ul><blockquote><a href="https://www.youtube.com/watch?v=gHXzyAkbUhk"><strong>Behavior of a Java program towards Compilation and Execution:</strong></a></blockquote><p>Commands Involved:</p><p>Syntax:</p><p>javac filename.java-&gt;to compile java code</p><p>java filename-&gt;to execute java code</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FgHXzyAkbUhk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgHXzyAkbUhk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FgHXzyAkbUhk%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b8273f7bf485c9b6dfa17dc9de835a00/href">https://medium.com/media/b8273f7bf485c9b6dfa17dc9de835a00/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*fVTzNLEV4E-5Wq71ItojUA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f694609175d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>