<?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 Sineth Shashintha on Medium]]></title>
        <description><![CDATA[Stories by Sineth Shashintha on Medium]]></description>
        <link>https://medium.com/@sinethshashintha2000?source=rss-eeb2fad235eb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0XomF6vOqoVM5tOYkmVqdg.jpeg</url>
            <title>Stories by Sineth Shashintha on Medium</title>
            <link>https://medium.com/@sinethshashintha2000?source=rss-eeb2fad235eb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 03:07:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sinethshashintha2000/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[How to write test cases in Software Testing]]></title>
            <link>https://medium.com/@sinethshashintha2000/how-to-write-test-cases-in-software-testing-e2ba8661c1ea?source=rss-eeb2fad235eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2ba8661c1ea</guid>
            <category><![CDATA[test-case]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[how-to-write-test-cases]]></category>
            <category><![CDATA[automation-testing]]></category>
            <dc:creator><![CDATA[Sineth Shashintha]]></dc:creator>
            <pubDate>Sun, 27 Oct 2024 04:39:05 GMT</pubDate>
            <atom:updated>2024-10-27T04:39:05.924Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dzHEDaNs6KTkvk1dqMHv4A.jpeg" /></figure><p>Test cases are important in software testing because they ensure that your software works correctly. If you’re new to testing, writing test cases might seem difficult, but it’s actually a straightforward process when broken down into simple steps.</p><h4><strong>What is a test case ??</strong></h4><p>A test case is a set of conditions or actions that testers use to check if a feature or functionality of a software application works as it should. Each test case focuses on verifying one aspect of the software.</p><h4>Test cases are important because →</h4><ol><li>They catch bugs: By testing the software, you can find issues or bugs before the software is released.</li><li>They ensure quality: Test cases make sure that every feature of the software works the way it should.</li><li>They are reusable: You can reuse test cases whenever the software is updated or changed.</li><li>They guide new testers: Well-written test cases make it easier for other testers or new team members to understand the testing process.</li></ol><h4>Tips for writing a good test case</h4><ol><li>Keep it simple: Use clear and concise language. Avoid unnecessary details.</li><li>Make it reusable: Write test cases that can be reused in future tests.</li><li>Think about edge cases: Test unusual situations, like entering special characters or leaving fields blank.</li><li>Assign unique IDs: Give each test case a unique ID for easier tracking.</li><li>Review and update: Regularly review your test cases and update them if the software changes.</li></ol><h3>Steps to write a test case</h3><h4>1. Understand the requirements</h4><p>Before writing any test case, we need to understand the requirements. Requirements are the details of what the software is supposed to do. If we don’t understand the requirements, we won’t be able to write a good test case. For example, if we are testing a login feature, the requirement might be, “A user should be able to log in using their username and password.&quot;</p><h4>2. Define the test scenario</h4><p>A test scenario is a high-level description of what you are testing. It’s a broad overview of the test.</p><p>Test Scenario 1: “Check that a user can log in with valid credentials.”</p><p>Test Scenario 2: “Check that an error message appears if the user enters the wrong password.”</p><h4>3. Write a test case title</h4><p>Every test case needs a simple and descriptive title. This title should explain what the test case is about.</p><p>Title 1: “Test login with valid credentials.</p><p>Title 2: “Test login with incorrect password.”</p><p>The title should be clear so that anyone reading it will understand what is being tested.</p><h4>4. List the preconditions</h4><p>Preconditions are things that must happen before we run the test. They set the stage for the test to work.</p><p>The user must be on the login page.</p><p>The web application must be open in the browser.</p><p>Preconditions tell us where to start when running the test.</p><h4>5. Write step by step instructions</h4><p>Each test case should have detailed steps that describe exactly what the tester needs to do. These steps should be clear and easy to follow.</p><p>01. Open the browser.<br>02. Navigate to the login page.<br>03. Enter a valid username in the username field.<br>04. Enter a valid password in the password field.<br>05. Click the “Login” button.</p><p>The steps should be numbered and written in simple language so that anyone can follow them without confusion</p><h4>6. Define the expected result</h4><p>The expected result is what should happen if everything works as planned. This is what we hope will happen when the test is successful.</p><p>Expected Result: The user should be redirected to the dashboard page after clicking the login button.</p><p>If the actual result matches the expected result, then the test passes.</p><h4>7. Record the actual result</h4><p>Once the test is executed, we need to write down the actual result , what actually happened when the test was run. If the software behaves as expected, the test passes. If not, it fails.</p><p>Actual Result: The user was successfully redirected to the dashboard page.<br>If the actual result doesn’t match the expected result, there may be a bug in the system.</p><h4>8. Use test data</h4><p>Test data is the information or inputs that we use during the test. For example, when testing a login page, the test data would be:</p><p>Username: “testuser”<br>Password: “password123”</p><p>Test data is important for both positive tests (valid data) and negative tests (invalid data).</p><h4>9. Write a conclusion</h4><p>Finally, after running the test, note if the test case passed or failed. If the test failed, we should describe what went wrong and report it to the development team.</p><h3>Example for a written test case</h3><p>Test Case Title: Test login with valid credentials.</p><p>Test case ID: 001</p><p>Preconditions: The user is on the login page.</p><p>Test Steps:</p><ol><li>Open the browser.<br>2. Navigate to the login page.<br>3. Enter the username: “testuser”.<br>4. Enter the password: “password123”.<br>5. Click the “Login” button.</li></ol><p>Expected Result: The user should be redirected to the dashboard page.</p><p>Actual Result: The user was redirected to the dashboard page.</p><p>Test Data: Username: “testuser”, Password: “password123”</p><p>Conclusion: Passed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*XxnQ9DZkqdSqoRkx10MKfw.jpeg" /></figure><h3>How to write automated test cases</h3><p>Writing an automated test case allows us to test software using code instead of manually checking it ourselves. This saves time and ensures that tests are done exactly the same way every time.</p><h4>What is an automated test case ??</h4><p>An automated test case is a script that tests part of a software application. Instead of following steps manually, a computer runs the script and checks if everything works as expected. For example, instead of logging into a website by typing in the username and password ourselves, the automated test case does this for us.</p><p>To write automated test cases we need →</p><ul><li><strong>Selenium WebDriver</strong>: A tool that allows us to control web browsers using code.</li><li><strong>TestNG</strong>: A testing framework for organizing and running tests in Java.</li><li><strong>Java</strong>: The programming language we use to write the test.</li><li><strong>Browser driver</strong>: A specific file to interact with a browser.</li></ul><h3>Steps to Write an Automated Test Case</h3><h4>1. Identify what to test</h4><p>First, we need to decide what part of the software we want to test. For example, we may want to test if the login functionality works properly.</p><h4>2. Set up our test environment</h4><p>Install Java, Selenium WebDriver, TestNG, and a browser driver like <strong>ChromeDriver</strong>.</p><h4>3. Locate the elements to interact with</h4><p>In the test case, we need to tell Selenium where to find the elements on the webpage (like input fields, buttons, etc.). We can do this by locating them using:</p><ul><li><strong>ID</strong></li><li><strong>Name</strong></li><li><strong>CSS Selectors</strong> or <strong>XPath</strong>.</li></ul><h4>4. Write the test steps</h4><p>Write code to simulate user actions like entering text, clicking buttons, or navigating pages. For example, use sendKeys() to type into fields and click() to press buttons.</p><h4>5. Check the expected result</h4><p>After simulating the actions, use <strong>assertions</strong> to check if the result is what we expected. For example, if we are testing a login, we can check if the user is redirected to the dashboard page after clicking the login button.</p><h4>6. Clean up after the test</h4><p>Once the test is complete, close the browser using driver.quit() to clean up and free resources.</p><p>Example code for an automated test case →</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vorbwR6ZbBPTaIiK21dzNQ.png" /></figure><h3>Benefits of writing automated test cases</h3><ul><li><strong>Speed</strong>: Automated tests run much faster than manual tests.</li><li><strong>Accuracy</strong>: There’s less room for human error because the tests are automated.</li><li><strong>Reusability</strong>: We can run the same test multiple times without rewriting it.</li><li><strong>Efficiency</strong>: Automated tests can run while we’re doing other tasks, saving time and effort.</li></ul><h3>Conclusion</h3><p>Writing test cases is an essential part of ensuring software quality. Whether manual or automated, test cases help identify bugs and confirm that everything works as expected. By following clear steps and understanding requirements, identifying test scenarios, writing structured test cases, and using tools like Selenium for automation, we can create effective tests. A well written test case not only saves time but also improves the overall reliability and stability of the software.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2ba8661c1ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Quality Assurance and Testing..]]></title>
            <link>https://medium.com/@sinethshashintha2000/software-quality-assurance-and-testing-ad80cf14f1a9?source=rss-eeb2fad235eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad80cf14f1a9</guid>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[qa-testing]]></category>
            <category><![CDATA[softwarequalityassurance]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Sineth Shashintha]]></dc:creator>
            <pubDate>Fri, 11 Oct 2024 13:51:06 GMT</pubDate>
            <atom:updated>2024-10-11T13:51:06.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yUsgHxcuiYoGB1v4CUqR6g.jpeg" /></figure><p>Software quality assurance is a process of ensuring a product or a service meets it’s standard of quality before releasing it. In the same way, QA helps to make sure the software works properly and doesn’t have any major bugs or errors. It means making sure that the product performs as expected, is user-friendly, secure, and free of major bugs or issues. QA aims to identify problems early in the development process, preventing costly fixes later on.QA is different from Quality Control (QC), which focuses on finding and fixing defects, and Testing, which is about executing the software to check its behavior.</p><p><strong><em>Why QA is important?</em></strong></p><p>If a product has defects, it can lead to a loss of customers, damaged reputations, and even financial losses. If we launch a mobile app with a bug that causes it to crash frequently then users would quickly become frustrated and stop using the app. QA helps avoid such scenarios by ensuring that the product meets user expectations before launch.</p><p><strong>Following are some reasons which depict why QA is important.</strong></p><p>Improving the product quality:</p><p>QA checks whether the every part of the software functions properly, providing a smooth and reliable experience for users.</p><p>Reduces long term costs</p><p>Detecting and fixing bugs early in the development process is much cheaper than addressing them after the product has been launched. A bug found after release could result in costly patches, customer complaints, and even a complete rework of certain features.</p><p>Enhances user experience</p><p>QA ensures the software is user friendly and provides a good user experience. QA engineers test the product’s usability, making sure that the interface is intuitive and that users can easily navigate through features. A great user experience leads to higher user satisfaction.</p><p>Prevent security effects</p><p>If any software hasn’t been properly tested, it can be exposed serious security risks. These vulnerabilities could allow attackers to exploit weaknesses, leading to data breaches, hacking incidents, and loss of sensitive information. This can be a damage for companies that deal with personal user data, such as banks, e commerce platforms, or healthcare services. QA includes security testing to identify and fix vulnerabilities, making sure the product is secure before release</p><p>Saves time</p><p>Detecting bugs and errors early in the development cycle, saves the time.</p><p><strong>Terms we find in QA:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*_I0AkuYP2btcxiKr3C9TPA.png" /></figure><ol><li><strong>Quality Assurance(QA)</strong> → This is a process oriented approach that focuses on preventing defects in the software development process. QA ensures that proper processes, methodologies, and standards are followed to maintain quality throughout the development cycle.</li></ol><p>Characteristics;</p><p>Process oriented = In QA, we are improving and managing the processes that are used to develop software. This includes defining coding standards, performing code reviews, and setting up development workflows.</p><p>Continous improvement = QA involves monitoring and improving the development process regularly to ensure consistent quality.</p><p>2. <strong>Quality Control(QC)</strong> → Quality Control is a product oriented approach. It focuses on the process and it is detecting defects in the actual product after it has been developed. It checks the final product for errors and ensures that the software meets the required quality standards.</p><p>Characteristics;</p><p>Product oriented = It focuses on examining the end product to verify that it meets specifications and requirements.</p><p>Invloes testing = It involves activities like testing, inspections, and reviews to ensure the software works as expected.</p><p>3. <strong>Testing </strong>→ Testing is the process of executing the software to verify that it behaves as expected. It is part of both QA and QC, as it helps detect problems and ensure processes are working correctly. Testing checks the functionality, performance, security, and other aspects of the software.</p><p>Characteristics;</p><p>Finds defects = Testing helps to find issues like functionality bugs, performance problems, security vulnerabilities and etc.</p><p>Execution based = Testing involves actually running the software under various conditions to check how it performs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*mJjVttQc4l_xGgD1fIe2dQ.png" /></figure><h3>QA in Software Development Life Cycle</h3><p>Quality Assurance plays a very important role in software development. It helps make sure that the software being created is high quality, works correctly, and meets the needs of the users. In software development, QA is involved at many stages to prevent problems and improve the overall product.</p><p>The software development life cycle has steps that developers follow to create software. QA is included in many of these steps to ensure that quality is maintained from start to finish.</p><p><strong><em>How QA works during the development process</em></strong></p><ol><li><strong>Requirement gathering:</strong></li></ol><p>Before the development starts, the team works to understand what the software needs to do. QA helps by checking that these requirements are clear and can be tested. This ensures that the team knows exactly what to build and how to check if it’s built correctly.</p><p><strong>2. Design phase:</strong></p><p>After the requirements are set, developers create a design for the software. QA makes sure that the design is complete and follows best practices. If the design has any flaws, QA can help catch them early before development starts.</p><p><strong>3. Development:</strong></p><p>When the developers start writing code, QA works alongside them. QA ensures that developers follow the processes, like coding standards and guidelines. This step ensures that the software is built using the right practices.</p><p><strong>4. Testing</strong>:</p><p>After the code is written, the QA testing team takes over. This is one of the most important steps in QA. The QA team runs various tests on the software to make sure it works properly. They test for bugs, errors, and performance issues. They also test different scenarios, such as how the software behaves when a lot of people use it at the same time or when it runs on different devices.</p><p><strong>5. Deployment and Maintenance:</strong></p><p>After the software is released, QA continues to test the software when updates or changes are made to ensure it still works smoothly. If new features are added or bugs are fixed, QA tests everything again to make sure nothing else is broken.</p><h3>Role of a QA Engineer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d-H7SE8LOLYzsSyVbya6bA.png" /></figure><p>A Quality Assurance (QA) Engineer is a person who ensures that software products are of high quality and meet the required standards before they are released to users. They play a crucial role in the software development process by testing software, identifying issues, and making sure that the final product works well.</p><h4>Responsibilities of a QA Engineer</h4><p><strong>Understanding Requirements →</strong></p><p>QA Engineers review project requirements to understand what the software is supposed to do. They ask questions to clarify any uncertainties and ensure they know how to test the software effectively.</p><p><strong>Creating Test Plans →</strong></p><p>They create a test plan, which outlines how they will test the software. This includes defining what will be tested, how it will be tested, and what tools will be used.</p><p><strong>Designing Test Cases →</strong></p><p>QA Engineers write test cases that detail specific scenarios to test. A test case outlines the steps to follow and the expected results to determine if the software is working correctly.</p><p><strong>Executing Tests →</strong></p><p>They run the tests on the software to check for bugs and issues. This can involve manual testing or automated testing.</p><p><strong>Reporting Issues →</strong></p><p>If they find bugs or problems, QA Engineers document them clearly and report them to the development team. They provide detailed information so that developers can understand and fix the issues.</p><h4>Tools used in quality assurance</h4><p><strong>Selenium:</strong></p><p>Selenium is a popular tool for automating web application testing. It allows QA Engineers to write scripts that automatically test different parts of a web application, making the testing process faster and more efficient.</p><p><strong>JIRA</strong>:</p><p>JIRA is a project management tool used to track bugs, issues, and tasks. QA Engineers use it to log issues they find during testing and monitor the progress of fixes.</p><p><strong>Postman</strong>:</p><p>Postman is a tool used for testing APIs. QA Engineers can send requests to an API and check if it responds correctly, ensuring that different systems communicate as expected.</p><h3>Types of testing</h3><p>Testing is an essential part of software development. It helps ensure that the software works correctly and meets user needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*5b41I9Pc1hn762pkvJ1mFw.png" /></figure><ol><li><strong>Unit Testing</strong></li></ol><p>Unit testing focuses on testing individual components or pieces of code called “units” in isolation. Each unit is tested to make sure it performs as expected. Typically, developers perform unit testing.</p><p>The goal is to catch bugs early in the development process before the code is combined with other units. This helps ensure that each part of the software is functioning correctly.</p><p>Eg;</p><p>If we have a function that adds two numbers, a unit test would check if the function returns the correct sum when given different pairs of numbers.</p><p><strong>2. Integration Testing</strong></p><p>Integration testing checks how different units or components of the software work together. It tests the interactions between units to ensure they communicate properly. QA Engineers or developers can perform integration testing.</p><p>The goal is to find issues that occur when units are combined, such as data format mismatches or communication errors.</p><p>Eg:</p><p>If you have a login module and a user database module, integration testing would check if the login module can correctly retrieve user information from the database.</p><p><strong>3. System Testing</strong></p><p>System testing evaluates the entire software system as a whole. It tests the complete application to ensure it meets the specified requirements. QA Engineers typically perform system testing.</p><p>The goal is to ensure that the whole system works correctly in an environment that simulates real-world conditions.</p><p>Eg:</p><p>Testing an e commerce website by checking if users can register, browse products, add items to their cart, and complete a purchase successfully.</p><p><strong>4. Acceptance Testing</strong></p><p>Acceptance testing is done to determine if the software is ready for release. It checks if the software meets user needs and business requirements. This is usually performed by the end-users or clients.</p><p>The goal is to ensure that the software is satisfactory and meets all requirements before it goes live.</p><p>Eg:</p><p>A client may perform acceptance testing by using the software in a real-world scenario to verify that it works as expected.</p><h4>Manual and Automated testing</h4><p><strong>Manual Testing</strong></p><p>In manual testing, they test the software by hand. This means they follow test cases, click through the application, and observe if the software behaves as expected. They report any bugs or issues they find during the process.</p><p>The tester manually performs actions like clicking buttons, filling out forms, and navigating through the software. They look for bugs, check if the software is user-friendly, and ensure that all functions work properly.</p><p><strong>Advantages</strong>:</p><p>Good for finding issues related to user experience. Checking whether the software easy to use.<br>Testers can explore the application in ways that automated tests might not cover.<br>Good for short term projects or when testing small changes.</p><p><strong>Disadvantages</strong>:</p><p>Time consuming: Testing by hand can take a lot of time, specially for large applications.<br>Repetitive: Running the same tests over and over can become boring and tiring for testers.<br><br><strong>Automated Testing</strong></p><p>In automated testing, special software tools like Selenium or JUnit are used to run tests automatically. The QA Engineer writes scripts that tell the tool what to do. The tool then performs the tests and checks if the software behaves correctly.</p><p>Instead of manually clicking buttons or filling forms, the tool does this for you. The tests can run automatically, even overnight or whenever new code is added, without needing someone to be present.</p><p><strong>Advantages</strong>:</p><p>Automated tests can run much quicker than manual tests, especially for large applications.<br>We can run the same test over and over without getting tired or missing anything.<br>Good for long term projects. Once the test scripts are written, they can be reused many times, saving time in the future.<br>Good for large-scale testing, like testing hundreds of users accessing a website at the same time.</p><p><strong>Disadvantages:</strong></p><p>Writing automated test scripts can take time, and you need programming skills.<br>Automated tests only do what they are programmed to do. They can miss issues that a human tester might catch.<br>Automated tools can’t judge if the software is user-friendly or easy to navigate.</p><h4>Manual and automated testing tools</h4><p><strong>Manual Testing Tools</strong></p><p><strong>JIRA</strong>:</p><p>JIRA is a tool used for tracking bugs and managing projects. QA engineers use JIRA to report bugs they find during manual testing and keep track of issues as developers fix them.</p><p><strong>TestRail</strong>:</p><p>TestRail is a tool for managing test cases and test results. QA engineers organize their manual tests in TestRail, making it easier to track what has been tested and what still needs testing.</p><p><strong>Automated Testing Tools</strong></p><p><strong>Selenium</strong>:</p><p>Selenium is a popular tool for automating web application tests. QA engineers write scripts to automatically test web pages, such as clicking buttons and checking if the page responds correctly. It saves time because tests can be run over and over without human involvement.</p><p><strong>Cypress</strong>:</p><p>Cypress is another tool for automating web application tests, similar to Selenium. It’s known for being easy to set up and provides faster feedback on test results. It’s a good choice for modern web applications.</p><p><strong>Postman</strong>:</p><p>Postman is a tool for testing APIs. How It Helps: QA engineers use it to send requests to APIs and check if they get the right response. It’s essential for testing how well different parts of software communicate.</p><h4>Trends and Future of QA</h4><p>Quality Assurance is evolving quickly due to new technologies and ways of working.</p><ol><li><strong>AI and Machine Learning in QA</strong></li></ol><p>Artificial Intelligence and Machine Learning are technologies that allow computers to learn from data and make decisions. In QA, these technologies can be used to improve testing.</p><p>How it helps:</p><p>AI can help find patterns in data that show where bugs are likely to occur. It can analyze past test results and predict which areas of the software need more testing.</p><p>ML can be used to create smarter test automation by learning how the software behaves and adjusting tests accordingly.</p><p>AI powered tools can automate repetitive tasks, like writing test scripts or analyzing test results, saving time for QA engineers.</p><p><strong>2. Test automation advancements</strong></p><p>Test automation is getting more advanced, with new tools and techniques making it easier to run automated tests.</p><p>How it helps:</p><p>New tools allow QA engineers to write faster and more reliable automated tests. They provide features like easier setup, faster test execution, and better reporting.</p><p>Codeless testing tools are becoming more popular. These tools let QA engineers automate tests without needing to write a lot of code, making automation accessible to more people.</p><p>Continuous testing: Automated tests are run all the time during the development process, ensuring any issues are caught quickly.</p><p><strong>3. The role of QA in DevOps and continuous delivery</strong></p><p>DevOps is a way of working where development and operations teams collaborate closely. Continuous Delivery is a practice where code is automatically tested and deployed as soon as changes are made. In this environment, QA plays an important role.</p><p>How It Helps:</p><p>QA in DevOps → In DevOps, QA is not a separate step done after development. Instead, QA is integrated into the entire process, and testing happens continuously. This ensures that software is always high quality.</p><p>QA in Continuous Delivery → With Continuous Delivery, every change made to the software is automatically tested and deployed. QA teams help set up automated tests that run with every code change, ensuring that the code is always tested before release.</p><p>QA engineers in these environments focus more on automation and collaborating with developers to create efficient testing processes.</p><h3>Conclusion</h3><p>Quality Assurance plays a crucial role in software development by ensuring that products are reliable, meet user expectations, and function properly. QA helps identify and fix bugs early, improving the overall quality of the software, saving costs, and building user trust. It also enables faster releases through automated testing and integration with DevOps practices, ensuring that new updates and features can be delivered quickly without compromising quality. Whether any person is a developer or a QA professional, embracing QA tools, automation, and staying updated with the latest trends is essential for creating software that users love and trust.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad80cf14f1a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Create a Burglar Alarm]]></title>
            <link>https://medium.com/@sinethshashintha2000/lets-create-a-burglar-alarm-264b335b74cf?source=rss-eeb2fad235eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/264b335b74cf</guid>
            <category><![CDATA[audio]]></category>
            <category><![CDATA[burglar-alarms]]></category>
            <category><![CDATA[tinkercad]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Sineth Shashintha]]></dc:creator>
            <pubDate>Wed, 22 Nov 2023 05:44:45 GMT</pubDate>
            <atom:updated>2023-11-22T05:45:14.880Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TJzLkTXh0FXISJDyLjcPXw.jpeg" /></figure><p>In the wake of increasing concerns about security, creating a burglar alarm system has become more relevant than ever. In this blog post, I’ll explain how I created an alarm to complete my future career bridge task and the process of building a simple yet effective burglar alarm system using Tinkercad, an online simulator, and an Arduino board.</p><p>Let’s go……….</p><p><strong><em>Step 1: Creating an account on Tinkercad</em></strong></p><p>The first step in our journey is to access Tinkercad. If you guys already, visit <a href="https://www.tinkercad.com/">https://www.tinkercad.com/</a>, and either log in or create a new account. Tinkercad provides us a user-friendly interface for designing and simulating electronic circuits.</p><p><strong><em>Step 2: Creating a New Project</em></strong></p><p>Once you’ve logged into Tinkercad, click on the “Designs” button to start a new project by clicking “+Create”. This will open a new tab where we can design our electronic circuit.</p><p><strong><em>Step 3: Adding Components</em></strong></p><p>Now, it’s time to add the necessary components to our circuit. From the components panel on the right(Arduino components), search for and add the following components:</p><ul><li>Arduino</li><li>Ultrasonic distance sensor</li><li>Buzzer</li></ul><p><strong><em>Step 4: Connecting Components</em></strong></p><p>Connect the components according to the following configuration:</p><ul><li>VCC pin of the ultrasonic sensor to the 5V pin on the Arduino.</li><li>GND pin of the ultrasonic sensor to the GND pin on the Arduino.</li><li>Trig pin of the ultrasonic sensor to a digital pin on the Arduino (e.g., D2).</li><li>Echo pin of the ultrasonic sensor to another digital pin on the Arduino (e.g., D3).</li><li>Positive (+) pin of the buzzer to a digital pin on the Arduino (e.g., D4).</li><li>Negative (-) pin of the buzzer to the GND pin on the Arduino.</li></ul><p><strong><em>Step 5: Writing Arduino Code</em></strong></p><p>After setting the circuit we can click on the “Code” button to switch to the code editor in Tinkercad. Then we can replace the default code with the provided Arduino code. This code uses an ultrasonic sensor to measure distance, and if an object is detected within a specified range, it triggers the buzzer.</p><p><strong><em>Step 6: Simulating the Alarm System</em></strong></p><p>Finally, we can click on the “Start Simulation” button to witness our circuit in action.</p><p><em>Thank you and enjoy the work….</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=264b335b74cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Create Knight Rider Lights with Arduino]]></title>
            <link>https://medium.com/@sinethshashintha2000/lets-create-knight-rider-lights-with-arduino-0d35b3c16f0a?source=rss-eeb2fad235eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d35b3c16f0a</guid>
            <category><![CDATA[arduino-projects]]></category>
            <category><![CDATA[knight-rider-lights]]></category>
            <category><![CDATA[arduino-uno]]></category>
            <category><![CDATA[arduino]]></category>
            <dc:creator><![CDATA[Sineth Shashintha]]></dc:creator>
            <pubDate>Tue, 21 Nov 2023 17:28:39 GMT</pubDate>
            <atom:updated>2023-11-21T17:28:39.336Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nnTJ3_Tx2cMFxSSj2bwySw.png" /><figcaption>Let’s go………</figcaption></figure><p>Welcome to the journey Arduino! In this blog, I’ll show you through the process of creating Knight Rider lights using Arduino — a classic and entertaining project that’s perfect for learning the basics of programming and electronics. I did this fantastic work to complete a software development task on Future Careers Bridge and I explain toyou how to do this successfully.</p><h3>Setting up the Environment:</h3><p>Before I dive into the project, I make sure we are all set up. If you guys haven’t already, head over to the official Arduino website and download the Arduino IDE (Integrated Development Environment). Install the software on your computer and connect your Arduino board via USB. The IDE is where you’ll write, compile, and upload your code to the Arduino board.</p><h3>Steps:</h3><blockquote><strong>Step 1: Download and Install the IDE</strong></blockquote><blockquote><strong>Step 2: Get the Arduino COM Port Number</strong></blockquote><blockquote><strong>Step 3: Configure the IDE</strong></blockquote><blockquote><strong>Step 4: Loading a Basic Example</strong></blockquote><h3>Writing the Code:</h3><p>Now that we have our environment ready, let’s write the code for the Knight Rider lights. In the Arduino IDE, open a new sketch and write the following code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*9FhqAeEu9ejhyITlnt2mJQ.png" /></figure><p>Now comes the exciting part — let’s see our project in action!</p><p>Let’s connect our Arduino board to our computer using a USB cable, select the correct board and port in the Arduino IDE, and click the “Upload” button. The code will be transferred to our Arduino, and we can see the LEDs with the Knight Rider pattern.</p><p>Let’s enjoy our project ………….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d35b3c16f0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Programming Language: An Enchanting Symphony of Versatility and Innovation]]></title>
            <link>https://medium.com/@sinethshashintha2000/java-programming-language-an-enchanting-symphony-of-versatility-and-innovation-a9f301f5f21?source=rss-eeb2fad235eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9f301f5f21</guid>
            <category><![CDATA[java-programming]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[oop-concepts]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Sineth Shashintha]]></dc:creator>
            <pubDate>Wed, 02 Aug 2023 16:33:26 GMT</pubDate>
            <atom:updated>2023-08-02T16:33:26.952Z</atom:updated>
            <content:encoded><![CDATA[<p>Java, a versatile and widely-used programming language, has become a cornerstone in the tech world. Developed by Sun Microsystems in the 1990s, it was initially designed to be simple, secure, and platform-independent. Over the years, it has evolved into a powerful language that is used in a myriad of applications and industries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*pu_q-NQV_EnIHBgHdZsrXQ.jpeg" /></figure><p><strong>Java Language:</strong></p><p>Java is an object-oriented, high-level programming language, which means it is designed around the concept of objects and classes. The language is known for its simplicity and readability, making it an excellent choice for both beginners and seasoned developers. Java syntax is derived from C and C++, making it familiar to those already familiar with these languages.</p><p><strong>Java Environment:</strong></p><p>Java operates on the “Write Once, Run Anywhere” (WORA) principle. This means that Java code can be written on one platform and run on any other platform that has a Java Virtual Machine (JVM) installed. The JVM acts as an interpreter that translates Java bytecode into machine code, allowing Java applications to be platform-independent.</p><h3>Key Features of Java:</h3><p>Java offers a range of features that contribute to its popularity and widespread adoption. Some of the key features include:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*OMzBnSMnRqM9m6RHsmv6CA.png" /></figure><p><strong>Platform Independence:</strong> Java’s “Write Once, Run Anywhere” (WORA) capability allows developers to write code on one platform and execute it on any other platform with a compatible JVM.</p><p><strong>Object-Oriented Programming (OOP):</strong> Java is an object-oriented language, that encourages the use of objects and classes for organizing and structuring code.</p><p><strong>Robust Standard Library:</strong> Java comes with a vast standard library, known as the Java Class Library (JCL) or Java API (Application Programming Interface).</p><p><strong>Garbage Collection:</strong> Java incorporates automatic memory management through garbage collection.</p><p><strong>Security:</strong> Java is designed with security in mind. The JVM enforces a security model that restricts certain operations that could be harmful.</p><p><strong>Multi-threading Support:</strong> Java provides built-in support for multi-threading, allowing developers to create applications that can execute multiple tasks concurrently.</p><h3>Java Ecosystem:</h3><p>Java’s extensive ecosystem comprises various tools, frameworks, and libraries that further enhance its capabilities. Some essential components of the Java ecosystem include:</p><p><strong>Spring Framework:</strong> A powerful and widely-used framework for building enterprise applications.</p><p><strong>Hibernate:</strong> A popular object-relational mapping (ORM) framework that simplifies database interaction.</p><p><strong>Maven and Gradle: </strong>Build automation tools that streamline the process of managing dependencies and building Java projects.</p><p><strong>JavaFX: </strong>A library for building rich client applications with graphical user interfaces (GUIs) and multimedia support.</p><p><strong>JUnit: </strong>A testing framework that facilitates unit testing in Java applications.</p><h3>Uses of Java:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*W2AZsvlOkZsWNrYdP2QUKw.png" /></figure><p>Java’s versatility has led to its adoption in various domains, making it one of the most popular programming languages today. Here are some key areas where Java is commonly used:</p><p><strong>Web Development:</strong> Java is widely used in web development, particularly on the server side.</p><p><strong>Android App Development:</strong> Java is the official programming language for Android app development.</p><p><strong>Enterprise Applications: </strong>Java’s robustness and scalability make it a preferred choice for building enterprise-level applications.</p><p><strong>Desktop Applications:</strong> Java can be used to develop cross-platform desktop applications.</p><p><strong>Cloud-Based Applications:</strong> Java has found applications in building cloud-based systems and services.</p><p><strong>Big Data and Data Science: </strong>Java’s libraries and frameworks make it suitable for processing and analyzing large volumes of data.</p><p><strong>Internet of Things (IoT): </strong>Java’s lightweight version, Java ME (Micro Edition), is used in developing applications for IoT devices.</p><p><strong>Gaming:</strong> Java has been used to develop games and interactive applications due to its support for graphical user interfaces (GUIs) and multimedia.</p><p>Java’s simplicity, platform independence, and strong community support have made it a programming language that stands the test of time. From web development to mobile apps, from enterprise-level systems to IoT and big data, Java continues to empower developers to create innovative and robust solutions. Its rich features, combined with its versatility and security, have cemented Java’s position as a top choice for developers worldwide.</p><p>As technology evolves, Java’s ecosystem and community-driven development will continue to adapt and innovate, ensuring that it remains a reliable and sought-after language in the ever-evolving world of software development.</p><p><strong><em>So, take a leap into the world of Java, and let your coding journey begin!!!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9f301f5f21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Variable Categories in Java — Java programming #13]]></title>
            <link>https://medium.com/@sinethshashintha2000/variable-categories-in-java-java-programming-13-614c2c20886e?source=rss-eeb2fad235eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/614c2c20886e</guid>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[java-programming]]></category>
            <category><![CDATA[static]]></category>
            <category><![CDATA[oop-concepts-in-java]]></category>
            <dc:creator><![CDATA[Sineth Shashintha]]></dc:creator>
            <pubDate>Mon, 01 May 2023 10:26:17 GMT</pubDate>
            <atom:updated>2023-05-01T10:26:17.186Z</atom:updated>
            <content:encoded><![CDATA[<h3>Variable Categories in Java — Java programming #13</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*arphACSTaAyNMZTZsulvaw.png" /></figure><h3>Local Variables</h3><p>A local variable is a variable that is declared within a method, constructor, or block, and is only visible and accessible within that scope. This means that you cannot access a local variable outside of the method, constructor, or block in which it is declared.</p><p>Local variables are created when the method, constructor, or block is entered, and are destroyed when it is exited. This means that their values only exist for the duration of the method, constructor, or block. Local variables must be initialized before they can be used in Java.</p><p>Local variables can have any of the primitive or reference types in Java, and can be modified within the method, constructor, or block where they are declared.</p><h3>Instance Variables</h3><p>An instance variable, also known as a member variable, is a variable that is declared within a class, but outside of any method, constructor, or block. Instance variables belong to the instance of the class, and are therefore unique to each instance.</p><p>Instance variables can have any of the primitive or reference types in Java, and can be modified using methods defined within the class. They can be accessed using an instance of the class, and their values persist as long as the instance exists. This means that instance variables can be used to maintain state information for objects of the class.</p><h3>Static/Class Variables</h3><p>a static variable is a variable that belongs to a class rather than an instance of the class. Static variables are also known as class variables because their values are shared across all instances of the class.</p><p>Static variables are declared using the static keyword, and are typically used to store values that are common to all instances of a class, such as constants or configuration values. Because static variables belong to the class itself, they can be accessed using the class name, rather than an instance of the class.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=614c2c20886e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Method types — Java Programming #12]]></title>
            <link>https://medium.com/@sinethshashintha2000/method-types-java-programming-12-f2c2318ed8c2?source=rss-eeb2fad235eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2c2318ed8c2</guid>
            <category><![CDATA[type-methods]]></category>
            <category><![CDATA[java-programming]]></category>
            <category><![CDATA[methods]]></category>
            <category><![CDATA[oop-concepts]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Sineth Shashintha]]></dc:creator>
            <pubDate>Mon, 01 May 2023 10:10:36 GMT</pubDate>
            <atom:updated>2023-05-01T10:10:36.461Z</atom:updated>
            <content:encoded><![CDATA[<h3>Method types — Java Programming #12</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*olvdWl8q_FEtFLR56x57cg.png" /></figure><p>A method can be declared inside a class and can either return a value or not. If a method returns a value, the return type must be specified in the method declaration, otherwise, the return type is void.</p><p>A method is a block of code that performs a specific task or operation. It is a set of instructions that are grouped together and given a name so that they can be called and executed multiple times throughout a program.</p><p>A method can be declared inside a class and can either return a value or not. If a method returns a value, the return type must be specified in the method declaration, otherwise, the return type is void.</p><p>Methods can also have parameters, which are values that are passed to the method when it is called. These parameters can be used inside the method to perform operations or calculations.</p><p>We can divide methods as predefined methods and user-defined methods.</p><p>Again we can divide user defined into two categories as Static methods and non-static methods.</p><h3>Pre-defined/Pre-build methods</h3><p>a predefined method is a method that is already defined in the Java language or in its standard libraries, which are included with the Java Development Kit (JDK). These methods are also sometimes referred to as built-in methods or library methods.</p><p>Predefined methods provide commonly used functionality and can be used by developers without having to write their own implementation. These methods can be used by simply invoking them and passing the appropriate parameters, without needing to understand how they are implemented.</p><p>Ex: length(), substring()</p><h3>User-defined methods</h3><p>A user-defined method is a method that is defined by the programmer to perform a specific task. Unlike predefined methods, which are part of the Java language or its standard libraries, user-defined methods are created by the programmer to meet the specific requirements of their application.</p><p>To define a user-defined method in Java, the programmer must specify a method signature, which includes the method name, the type and order of its parameters (if any), and the method’s return type (if any). The method body contains the statements that define the behavior of the method.</p><h3>Static method</h3><p>A static method is a method that belongs to a class rather than to an instance of that class. This means that a static method can be called directly on the class itself, without the need to create an instance of the class first.</p><h3>Non-static method</h3><p>A non-static method is a method that belongs to an instance of a class, rather than to the class itself. This means that a non-static method can only be called on an instance of the class, rather than on the class itself.</p><p>Non-static methods are typically used to perform operations that are dependent on the state of a particular instance of the class.</p><p>Methods can also have parameters, which are values that are passed to the method when it is called. These parameters can be used inside the method to perform operations or calculations.</p><p>First of all, let’s see, what is a method ?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2c2318ed8c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Loops in Java — Java Programming #11]]></title>
            <link>https://medium.com/@sinethshashintha2000/loops-in-java-java-programming-11-1460e68d6d41?source=rss-eeb2fad235eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1460e68d6d41</guid>
            <category><![CDATA[loops-in-java]]></category>
            <category><![CDATA[java-programming]]></category>
            <category><![CDATA[for]]></category>
            <category><![CDATA[while]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Sineth Shashintha]]></dc:creator>
            <pubDate>Wed, 26 Apr 2023 06:59:19 GMT</pubDate>
            <atom:updated>2023-04-26T06:59:19.897Z</atom:updated>
            <content:encoded><![CDATA[<h3>Loops in Java — Java Programming #11</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*pIYJGkU239glx30m0FDvZA.png" /></figure><p>In Java, a loop is a control structure that allows you to execute a block of code repeatedly until a certain condition is met. Loops are used when you want to perform a certain operation repeatedly, with different inputs or conditions each time.</p><p>There are three types of loops in Java:</p><ol><li>For Loop: A for loop is used to execute a block of code a fixed number of times. The syntax of a for loop is:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*DLhqZTTxU56WmKfUPDcV0Q.png" /></figure><p>Here, initialization is used to set the initial value of the loop counter, the condition is used to test the loop counter against a given condition, and increment/decrement is used to update the loop counter after each iteration.</p><p>2. While Loop: A while loop is used to execute a block of code repeatedly as long as a certain condition is true. The syntax of a while loop is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*Cvqi6Vr8WmnIetOf8-JvFA.png" /></figure><p>Here, the code block will be executed repeatedly as long as the condition is true.</p><p>3. Do-While Loop: A do-while loop is similar to a while loop, but the code block is executed at least once, even if the condition is false. The syntax of a do-while loop is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*BQ-4cPZ0dcP02-H2lryWQQ.png" /></figure><p><strong>Here are some simple examples of Java using for and while loops</strong></p><p><strong><em>Using For Loop:</em></strong></p><p>This code will print “Hello, world!” five times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*2ytqdDZLnNIzKuG7_7qIvQ.png" /></figure><p><strong><em>Using While Loop:</em></strong></p><p>This code will also print “Hello, world!” five times, but uses a while loop instead of a for loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*tMGV7b4BQq1CpqOLGCNpDA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1460e68d6d41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Abstraction in Java — Java Programming #10]]></title>
            <link>https://medium.com/@sinethshashintha2000/abstraction-in-java-java-programming-10-750b4a0a3f8d?source=rss-eeb2fad235eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/750b4a0a3f8d</guid>
            <category><![CDATA[abstraction]]></category>
            <category><![CDATA[oop-concepts]]></category>
            <category><![CDATA[interfaces]]></category>
            <category><![CDATA[abstract-class]]></category>
            <category><![CDATA[java-programming]]></category>
            <dc:creator><![CDATA[Sineth Shashintha]]></dc:creator>
            <pubDate>Tue, 25 Apr 2023 17:48:19 GMT</pubDate>
            <atom:updated>2023-04-26T05:44:18.275Z</atom:updated>
            <content:encoded><![CDATA[<h3>Abstraction in Java — Java Programming #10</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*qmMTXsfL2PaqB6GLAQweQg.png" /></figure><p>Abstraction in Java is a mechanism that allows you to represent complex real-world objects in a simplified manner in code. In other words, it is the ability to focus on essential features of an object or system, while ignoring the details that are not important.</p><p>In Java, abstraction is achieved through two main mechanisms: interfaces and abstract classes. Both of these mechanisms allow you to define a set of methods that must be implemented by the classes that use them, without providing any implementation details. This allows for a higher degree of flexibility and modularity in your code, as you can define the behavior of an object or system without worrying about the implementation details.</p><p>Interfaces are purely abstract classes, meaning they define only the method signatures without any implementation details. A class that implements an interface must provide implementations for all of the methods defined in the interface.</p><p>Abstract classes are classes that cannot be instantiated directly and may contain both abstract and non-abstract methods. Abstract methods are declared without implementation details and must be implemented by any concrete subclass that extends the abstract class.</p><p>By using abstraction in Java, you can create code that is more flexible, modular, and easy to maintain.</p><p><strong><em>abstract class Shape {<br> // Declare abstract methods<br> public abstract double area();<br> public abstract double perimeter();<br>}</em></strong></p><p><strong><em>class Circle extends Shape {<br> // Declare variables<br> private double radius;</em></strong></p><p><strong><em>// Constructor<br> public Circle(double radius) {<br> this.radius = radius;<br> }</em></strong></p><p><strong><em>// Implement abstract methods<br> public double area() {<br> return Math.PI * radius * radius;<br> }</em></strong></p><p><strong><em>public double perimeter() {<br> return 2 * Math.PI * radius;<br> }<br>}</em></strong></p><p><strong><em>public class Main {<br> public static void main(String[] args) {<br> // Create a new Circle object<br> Circle c = new Circle(5);</em></strong></p><p><strong><em>// Call the area() and perimeter() methods<br> System.out.println(“Circle area: “ + c.area());<br> System.out.println(“Circle perimeter: “ + c.perimeter());<br> }</em></strong><em><br>}</em></p><p>In this example, we have an abstract class called Shape that defines two abstract methods, area() and perimeter(). These methods are declared without any implementation details.</p><p>We also have a concrete subclass of Shape called Circle. This class implements the area() and perimeter() methods by providing their implementation details.</p><p>Finally, in the Main class, we create a new Circle object and call the area() and perimeter() methods. Because Circle extends Shape, it must provide implementations for both of these methods. This allows us to use the Shape abstraction to represent a circle in our code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=750b4a0a3f8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Super keyword in Java — Java Programming #9]]></title>
            <link>https://medium.com/@sinethshashintha2000/super-keyword-in-java-java-programming-9-83a71ec90f15?source=rss-eeb2fad235eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/83a71ec90f15</guid>
            <category><![CDATA[overriding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[oop-concepts]]></category>
            <category><![CDATA[super-keyword]]></category>
            <dc:creator><![CDATA[Sineth Shashintha]]></dc:creator>
            <pubDate>Sat, 08 Apr 2023 14:12:17 GMT</pubDate>
            <atom:updated>2023-04-08T14:12:17.187Z</atom:updated>
            <content:encoded><![CDATA[<h3>Super keyword in Java — Java Programming #9</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*cXXvyZ4VAK5WNrsVNyDp0A.png" /></figure><p>Hello Java guys.. let’s understand “super” keyword in Java in a very simple way before we move on to the complete descriptions.</p><p>Simply, we can use ‘super’ keyword in Java programming to call the superclass constructor when we are in the subclass. In the same way, we can say, we can call super class when we are in the subclass. It means we can access super class variables and methods from a sub-class with this ‘super’ keyword. <strong>Specially</strong> we can use this ‘super’ keyword when we use overriding.</p><p>Now let’s study this in more descriptive way.</p><p>In Java, the ‘super’ keyword is used to refer to the superclass of a subclass. It can be used to call the superclass&#39;s constructor or to access its methods or fields.</p><ol><li>To call the constructor of the superclass: When a subclass is created, its constructor is automatically called. If the superclass has a constructor that takes arguments, the ‘super()’ call must be the first statement in the subclass constructor. For example:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*4YVq7pLQK8DhCLl2uRkILg.png" /></figure><p>2. To access the methods and fields of the superclass: The super keyword can also be used to access methods and fields of the superclass. This is useful when the subclass has overridden a method or hidden a field of the superclass, but still needs to access the original implementation. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*TUntmcVEJ0YjsTcqL8cf1g.png" /></figure><p>In the example above, super.someMethod() is used to call the superclass&#39;s implementation of someMethod() before printing &quot;Hello from Subclass&quot;.</p><p>Overall, the super keyword is used to provide a way for a subclass to interact with its superclass. It allows a subclass to inherit and use the methods and fields of the superclass, while also providing the flexibility to override or hide them as needed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83a71ec90f15" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>