<?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 Philip Niron Nithianandan on Medium]]></title>
        <description><![CDATA[Stories by Philip Niron Nithianandan on Medium]]></description>
        <link>https://medium.com/@philip.niron?source=rss-57af3553ea08------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jmGAD1nOQ_KTsrqzpK9OSA@2x.jpeg</url>
            <title>Stories by Philip Niron Nithianandan on Medium</title>
            <link>https://medium.com/@philip.niron?source=rss-57af3553ea08------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 03:52:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@philip.niron/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 be consistent as a programmer?]]></title>
            <link>https://medium.com/@philip.niron/how-to-be-consistent-as-a-programmer-fec44b13ee46?source=rss-57af3553ea08------2</link>
            <guid isPermaLink="false">https://medium.com/p/fec44b13ee46</guid>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[consistency]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Philip Niron Nithianandan]]></dc:creator>
            <pubDate>Fri, 16 Dec 2022 06:13:37 GMT</pubDate>
            <atom:updated>2022-12-16T06:13:37.431Z</atom:updated>
            <content:encoded><![CDATA[<p>There are a few key ways to be consistent as a programmer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*32So4OQfLN5iBd6iZosXzQ.png" /></figure><ol><li>Set clear goals and priorities: It’s important to have a clear understanding of what you need to accomplish and to prioritize your tasks accordingly. This can help you stay focused and make progress consistently.</li><li>Create a consistent work environment: Try to create a consistent work environment that is free of distractions and conducive to productivity. This may involve finding a quiet place to work, setting up your workstation in a way that is comfortable and ergonomic, and using tools and techniques to help you stay focused.</li><li>Establish a consistent routine: Having a consistent routine can help you stay focused and productive. This might involve setting aside a specific time each day for programming, or establishing a set of habits and practices that you follow consistently.</li><li>Take breaks: It’s important to take breaks and give yourself time to rest and recharge. This can help you stay focused and avoid burnout.</li><li>Seek support: If you are struggling to be consistent, it can be helpful to seek support from coworkers, mentors, or online communities. These resources can provide valuable guidance and encouragement as you work to improve your consistency.</li></ol><p>Ultimately, being consistent as a programmer requires a combination of clear goals, a supportive work environment, and good habits and practices. By focusing on these areas, you can increase your productivity and improve your overall consistency as a programmer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fec44b13ee46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to learn and master AWS as a beginner?]]></title>
            <link>https://medium.com/@philip.niron/how-to-learn-and-master-aws-as-a-beginner-cf8b2851089f?source=rss-57af3553ea08------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf8b2851089f</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[learn-aws]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <dc:creator><![CDATA[Philip Niron Nithianandan]]></dc:creator>
            <pubDate>Fri, 16 Dec 2022 04:40:03 GMT</pubDate>
            <atom:updated>2022-12-16T04:40:03.394Z</atom:updated>
            <content:encoded><![CDATA[<p>Learning Amazon Web Services (AWS) can seem intimidating as a beginner, but with the right resources and approach, it is possible to quickly become proficient in this powerful cloud computing platform. Here are some tips for learning and mastering AWS as a beginner:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WaiN-0z29UTuCosHpb8Okg.png" /></figure><ol><li>Start with the basics: Before diving into specific AWS services and features, it’s important to understand the fundamental concepts of cloud computing and how AWS fits into this landscape. You can learn about these concepts through online courses or by reading AWS documentation.</li><li>Take advantage of free resources: AWS offers a range of free resources for learning about its services, including documentation, tutorials, and hands-on labs. These resources can be a great way to get started and get a feel for how AWS works.</li><li>Practice, practice, practice: The best way to learn any new technology is to get hands-on experience. Consider setting up a personal AWS account and experimenting with different services and configurations to get a feel for how they work. You can also participate in online challenges or hackathons to test your skills and apply your knowledge in a practical setting.</li><li>Join a community: There are many online communities, forums, and groups dedicated to AWS where you can ask questions, share experiences, and find resources. These communities can be a great way to connect with other AWS users and learn from their expertise.</li><li>Consider getting certified: While not necessarily required, obtaining an AWS certification can be a valuable way to demonstrate your knowledge and skills to potential employers or clients. AWS offers a range of certification exams covering different areas of the platform, and there are many resources available to help you prepare for these exams.</li></ol><p>Overall, learning AWS as a beginner requires a combination of study and practice. By taking advantage of the resources available and getting hands-on experience, you can become proficient in this powerful platform and open up new career opportunities in the field of cloud computing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf8b2851089f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 unique passive income ideas for programmers]]></title>
            <link>https://medium.com/@philip.niron/5-unique-passive-income-ideas-for-programmers-c3356a599344?source=rss-57af3553ea08------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3356a599344</guid>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[passive-income]]></category>
            <dc:creator><![CDATA[Philip Niron Nithianandan]]></dc:creator>
            <pubDate>Fri, 16 Dec 2022 04:19:33 GMT</pubDate>
            <atom:updated>2022-12-16T04:20:09.806Z</atom:updated>
            <content:encoded><![CDATA[<h3>Five unique passive income ideas for programmers</h3><p>Are you a programmer 👨🏻‍💻 looking for new ways to generate passive income? 💰 While the traditional 9-to-5 workday can be fulfilling, it’s also nice to have additional streams of income that don’t require a lot of ongoing effort.<br>Here are five unique passive income ideas for programmers that can help you earn money while you sleep 🛌🏻:</p><p>1. Develop and sell online courses or tutorials on programming topics. With the rise of online learning platforms, there’s never been a better time to share your knowledge and expertise with others. You can create video lessons, ebooks, or other formats to teach others about a specific programming language or concept.</p><p>2. Create and sell software as a service (SaaS) products. Many businesses and individuals have specific needs or problems that can be solved with the right software solution. If you have a great idea for a tool or platform, consider developing it and selling it as a SaaS product. This can be a great way to generate passive income from your programming skills.</p><p>3. Write and self-publish technical books or ebooks on programming topics. If you have a passion for writing and teaching, consider sharing your knowledge and experience through the written word. You can self-publish your work on platforms like Amazon, and earn royalties each time someone buys your book.</p><p>4. Create and sell plugins or extensions for popular software programs or development tools. Many developers use various tools and programs to help them with their work. If you have a great idea for a plugin or extension that adds value to these tools, consider developing it and selling it to other programmers. This can be a great way to generate passive income from your programming skills.</p><p>5. Develop and license code libraries or snippets to other programmers or companies. If you have a collection of useful code that can save others time and effort, consider licensing it to other programmers or companies. You can earn passive income by allowing others to use your code, without having to put in a lot of ongoing effort.</p><p>Overall, there are many unique ways for programmers to generate passive income. By leveraging your skills and expertise, you can create valuable products and resources that can help others, while also earning a passive income for yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tQb-Ed7L8S9aOfduaixQuA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3356a599344" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to master a programming language?]]></title>
            <link>https://medium.com/@philip.niron/how-to-master-a-programming-language-fece7a13ff?source=rss-57af3553ea08------2</link>
            <guid isPermaLink="false">https://medium.com/p/fece7a13ff</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[programmers-life]]></category>
            <dc:creator><![CDATA[Philip Niron Nithianandan]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 06:19:16 GMT</pubDate>
            <atom:updated>2022-12-15T06:19:16.260Z</atom:updated>
            <content:encoded><![CDATA[<p>To master a programming language, you need to do the following:</p><ol><li>Start by gaining a strong understanding of the language’s fundamentals, including its syntax, data types, and common libraries and frameworks. You can learn these basics through online tutorials, books, or courses.</li><li>Practice regularly by working on small projects or exercises that challenge you to use different features of the language. This will help you gain experience and build your skills.</li><li>Participate in online communities, such as forums and social media groups, where you can learn from other experienced developers and share your own experiences. This will also help you stay up-to-date with the latest trends and best practices in the language.</li><li>Continue to learn and experiment with the language. As with any skill, mastering a programming language takes time and effort. Keep learning and trying out new things to continually improve your skills.</li><li>Consider getting certified in the language. Many companies and organizations offer certification programs that can validate your knowledge and skills in a particular language. This can be a valuable addition to your resume and can help you stand out in the job market.</li></ol><p>In conclusion, mastering a programming language requires dedication, practice, and a willingness to continue learning. By following these steps and staying dedicated, you can become proficient in the language and stand out as a developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ASUbAfJTpPlMRUQU2P-bUw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fece7a13ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 productivity tips for programmers]]></title>
            <link>https://medium.com/@philip.niron/10-productivity-tips-for-programmers-f6ee72282ce?source=rss-57af3553ea08------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6ee72282ce</guid>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Philip Niron Nithianandan]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 05:57:07 GMT</pubDate>
            <atom:updated>2022-12-15T05:57:07.002Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Create a schedule and stick to it. This will help you stay focused and avoid distractions.</li><li>Take regular breaks to refresh your mind and avoid burnout.</li><li>Set clear goals for each work session and prioritize your tasks to avoid getting overwhelmed.</li><li>Use tools to block distracting websites and notifications.</li><li>Avoid multitasking, as it can decrease your productivity and impair your ability to focus.</li><li>Collaborate with others and share knowledge to improve your efficiency.</li><li>Use keyboard shortcuts to save time and increase your speed.</li><li>Automate repetitive tasks to free up your time for more important work.</li><li>Stay organized by keeping your files and folders organized and properly labeled.</li><li>Continuously learn and improve your skills to stay up-to-date and increase your productivity.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*80kQEvVqpkWd4vy0p6zJUg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6ee72282ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IBM Computer Science Courses — Part 1️⃣]]></title>
            <link>https://medium.com/@philip.niron/ibm-computer-science-courses-part-1%EF%B8%8F%E2%83%A3-de8e6d77bbf1?source=rss-57af3553ea08------2</link>
            <guid isPermaLink="false">https://medium.com/p/de8e6d77bbf1</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Philip Niron Nithianandan]]></dc:creator>
            <pubDate>Tue, 13 Dec 2022 16:29:44 GMT</pubDate>
            <atom:updated>2022-12-13T16:30:26.962Z</atom:updated>
            <content:encoded><![CDATA[<h3>IBM Computer Science Courses — Part 1️⃣</h3><p>💯🆓 (Auditing) 👀</p><p>5️⃣<strong> Python Basics for Data Science</strong></p><p>📝This Python course provides a beginner-friendly introduction to Python for Data Science. Practice through lab exercises, and you’ll be ready to create your first Python scripts on your own!<br>⏰3 weeks [4–10 hours per week]<br>🔗<a href="https://www.edx.org/course/python-basics-for-data-science?index=product_value_experiment_a&amp;queryID=be4083c6aafd99ba1e3a62d54b933418&amp;position=8"><em>Click here</em></a></p><p>4️⃣<strong> Linux Commands &amp; Shell Scripting</strong></p><p>📝This mini-course describes shell commands and how to use the advanced features of the Bash shell to automate complicated database tasks. For those not familiar with shell scripting, this course provides an overview of common Linux Shell Commands and shell scripting basics.<br>⏰1 weeks [3–4 hours per week]<br>🔗<a href="https://www.edx.org/course/linux-commands-shell-scripting?index=product_value_experiment_a&amp;queryID=347a4f4bf6036f9ccf132355aa739be9&amp;position=19"><em>Click here</em></a></p><p>3️⃣ <strong>Machine Learning with Python: A Practical Introduction</strong></p><p>📝Machine Learning can be an incredibly beneficial tool to uncover hidden insights and predict future trends. This Machine Learning with Python course will give you all the tools you need to get started with supervised and unsupervised learning.<br>⏰5 weeks [4–6 hours per week]<br>🔗<a href="https://www.edx.org/course/machine-learning-with-python-a-practical-introduct?index=product_value_experiment_a&amp;queryID=e18e0133e86ccbaa188a0bf4341ff9cc&amp;position=14"><em>Click here</em></a></p><p>2️⃣ <strong>Introduction to Blockchain</strong></p><p>📝Discover why blockchain is such a disruptive force across business, government and society. Blockchain technology sparked the creation of Bitcoin, a decentralized digital payment system, as well as other popular cryptocurrency systems. Today industry leaders and experts are picturing radical new ways of using blockchain technology to form connections in the global economy. In this course, you will learn how to design smart contracts, bitcoin wallets, fabricode, chain SDKs, and more.<br>⏰3 weeks [3–4 hours per week]<br>🔗<a href="https://www.edx.org/course/introduction-to-blockchain"><em>Click here</em></a></p><p>1️⃣ <strong>Cybersecurity Basics</strong></p><p>📝This course gives you the background needed to understand the basics of Cybersecurity. You will explore information security from its history to a description of various cybercriminals and cybersecurity threats concluding with the tools needed to prevent an attack.<br>⏰4 weeks [4–8 hours per week]<br>🔗<a href="https://www.edx.org/course/cybersecurity-basics?index=product_value_experiment_a&amp;queryID=5f2b5abd006c12550f9244097758f593&amp;position=9"><em>Click here</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*RmsTTvGFyIrIaqCxxE7mFQ.jpeg" /></figure><p><em>🎯Start learning today and wait for part 2️⃣.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de8e6d77bbf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The top 5 programming languages to learn in 2023]]></title>
            <link>https://medium.com/@philip.niron/the-top-5-programming-languages-to-learn-in-2023-f77992c66213?source=rss-57af3553ea08------2</link>
            <guid isPermaLink="false">https://medium.com/p/f77992c66213</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Philip Niron Nithianandan]]></dc:creator>
            <pubDate>Sat, 10 Dec 2022 16:14:18 GMT</pubDate>
            <atom:updated>2022-12-10T16:14:18.581Z</atom:updated>
            <content:encoded><![CDATA[<h3>5. Java -</h3><p>⚒️Best used for Android and Enterprise applications. <br>👉🏻Today there are more than 3 billion devices running applications running Java. <br>💰Projected Annual Salary: $107,000.<br>🔗<a href="https://www.javatpoint.com/java-tutorial">https://www.javatpoint.com/java-tutorial</a></p><h3>4. Swift -</h3><p>⚒️Best used for iPhone Applications (iOS)<br>👉🏻Companies that use Swift include Uber, Lyft, Facebook, Airbnb, and LinkedIn for their iOS applications.<br>💰Projected Annual Salary: $119,000 /year<br>🔗<a href="https://www.tutorialspoint.com/swift/index.htm">https://www.tutorialspoint.com/swift/index.htm</a></p><h3>3. Solidity -</h3><p>⚒️Best used for Blockchain Development<br>👉🏻Demand is high for both companies and freelance work<br>💰Projected Annual Salary $156,000<br>🔗<a href="https://docs.soliditylang.org/en/v0.8.17/">https://docs.soliditylang.org/en/v0.8.17/</a></p><h3>2. Python -</h3><p>⚒️Best used for Data Science<br>👉🏻Great for machine learning and deep learning applications<br>💰Projected Annual Salary: $112,000<br>🔗<a href="https://www.javatpoint.com/python-tutorial">https://www.javatpoint.com/python-tutorial</a></p><h3>1. Javascript -</h3><p>⚒️Best used for Web Development<br>👉🏻Ideal for beginners<br>💰Projected Annual Salary: $105,000<br>🔗<a href="https://www.javatpoint.com/javascript-tutorial">https://www.javatpoint.com/javascript-tutorial</a></p><p>📝It’s time for you to choose one language and stick to it. Learn it until you can build a project on your own with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*DfuZorWIO2p02IthZu8mow.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f77992c66213" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JDK vs JRE vs JVM: Key Differences]]></title>
            <link>https://medium.com/@philip.niron/jdk-vs-jre-vs-jvm-key-differences-8171a36986de?source=rss-57af3553ea08------2</link>
            <guid isPermaLink="false">https://medium.com/p/8171a36986de</guid>
            <category><![CDATA[jdk]]></category>
            <category><![CDATA[jre]]></category>
            <category><![CDATA[jvm]]></category>
            <dc:creator><![CDATA[Philip Niron Nithianandan]]></dc:creator>
            <pubDate>Tue, 01 Mar 2022 06:07:26 GMT</pubDate>
            <atom:updated>2022-03-01T06:07:26.769Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is JDK?</h3><p>JDK is a software development environment used for making applets and Java applications. The full form of JDK is Java Development Kit. Java developers can use it on Windows, macOS, Solaris, and Linux. JDK helps them to code and run Java programs. It is possible to install more than one JDK version on the same computer.</p><h3>What is JRE?</h3><p>JRE is a piece of a software which is designed to run other software. It contains the class libraries, loader class, and JVM. In simple terms, if you want to run Java program you need JRE. If you are not a programmer, you don’t need to install JDK, but just JRE to run Java programs. Though, all JDK versions comes bundled with Java Runtime Environment, so you do not need to download and install the JRE separately in your PC. The full form of JRE is Java Runtime Environment.</p><h3>What is JVM?</h3><p>JVM is an engine that provides a runtime environment to drive the Java Code or applications. It converts Java bytecode into machine language. JVM is a part of Java Run Environment (JRE). It cannot be separately downloaded and installed. To install JVM, you need to install JRE. The full form of JVM is Java Virtual Machine.</p><p>In many other programming languages, the compiler produces machine code for a specific system. However, Java compiler produces code for a virtual machine which is called as JVM.</p><h3>KEY DIFFERENCES</h3><ul><li>JDK is a software development kit whereas JRE is a software bundle that allows Java program to run, whereas JVM is an environment for executing bytecode.</li><li>The full form of JDK is Java Development Kit, while the full form of JRE is Java Runtime Environment, while the full form of JVM is Java Virtual Machine.</li><li>JDK is platform dependent, JRE is also platform dependent, but JVM is not platform independent.</li><li>JDK contains tools for developing, debugging, etc. JRE contains class libraries and other supporting files, whereas software development tools are not included in JVM.</li><li>JDK comes with the installer, on the other hand, JRE only contains the environment to execute source code whereas JVM bundled in both software JDK and JRE.</li></ul><h3>Why use JDK?</h3><p>Here are the important reasons of using JDK:</p><ul><li>JDK contains tools required to write Java programs, and JRE to execute them.</li><li>It includes a compiler, Java application launcher, Appletviewer, etc.</li><li>Compiler converts code written in Java into byte code.</li><li>Java application launcher opens a JRE, loads the necessary class, and executes its main method.</li></ul><h3>Why use JRE?</h3><p>Here are the important reasons of using JRE:</p><ul><li>JRE contains class libraries, JVM, and other supporting files. It does not contain any tool for Java development like a debugger, compiler, etc.</li><li>It uses important package classes like math, swingetc, util, lang, awt, and runtime libraries.</li><li>If you have to run Java applets, then JRE must be installed in your system.</li></ul><h3>Why JVM?</h3><p>Here are the important reasons of using JVM:</p><ul><li>JVM provides a platform-independent way of executing Java source code.</li><li>It has numerous libraries, tools, and frameworks.</li><li>Once you run Java program, you can run on any platform and save lots of time.</li><li>JVM comes with JIT(Just-in-Time) compiler that converts Java source code into low-level machine language. Hence, it runs more faster as a regular application.</li></ul><h3>Features of JDK</h3><p>Here are the<strong> </strong>important features of JDK:</p><ul><li>It enables you to handle multiple extensions in a single catch block.</li><li>JDK includes all features that JRE has.</li><li>It contains development tools such as a compiler, debugger, etc.</li><li>JDK provides the environment to develop and execute Java source code.</li><li>It can be installed on Windows, Unix, and Mac operating systems.</li><li>Diamond operator can be used in specifying a generic type interface instead of writing the exact one.</li></ul><h3>Features of JRE</h3><p>Here are the<strong> </strong>important features of JRE:</p><ul><li>Java Runtime Environment is a set of tools using which the JVM actually runs.</li><li>JRE contains deployment technology, including Java Web Start and Java Plug-in.</li><li>Developers can easily run the source code in JRE, but he/she cannot write and compile the Java program.</li><li>It includes integration libraries like Java Database Connectivity (JDBC), Remote Method Invocation (RMI), Java Naming and Directory Interface (JNDI), and more.</li><li>JRE has JVM and Java HotSpot virtual machine client.</li></ul><h3>Features of JVM</h3><p>Here are the important features of JVM:</p><ul><li>It enables you to run applications in a cloud environment or in your device.</li><li>Java Virtual Machine converts byte code to the machine-specific code.</li><li>It provides basic java functions like memory management, security, garbage collection, and more.</li><li>JVM runs the program by using libraries and files given by Java Runtime Environment.</li><li>JDK and JRE both contain Java Virtual Machine.</li><li>It can execute the java program line by line hence it is also called as interpreter.</li><li>JVM is easily customizable for example, you can allocate minimum and maximum memory to it.</li><li>It is independent from hardware and the operating system. So, you can write a java program once and run anywhere.</li></ul><h3>How JDK Functions?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*wys5BiLUu3YbFa8h4ZMHhA.png" /><figcaption>JDK Functionality</figcaption></figure><p>Here are the important components of JDK:</p><ul><li><strong>JDK and JRE</strong>: The JDK enables programmers to create core Java programs that can be run by the JRE, which included JVM and class libraries.</li><li><strong>Class Libraries: </strong>It is a group of dynamically loadable libraries that Java program can call at run time.</li><li><strong>Compilers:</strong> It is a Java program that accepts text file of developers and compiles into Java class file. It is the common form of output given by compiler, which contains Java byte code. In Java, the primary compiler is Javac.</li><li><strong>Debuggers: </strong>Debugger is a Java program that lets developers test and debug Java programs.</li><li><strong>JavaDoc: </strong>JavaDoc is documentation made by Sun Microsystems for the Java. JavaDoc can be used generating API documentation in HTML file from the source program</li></ul><h3>How JRE Functions?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/255/1*ZxNHl9pIaCtRN_6wLxGVig.png" /><figcaption>JRE Functionality</figcaption></figure><p>JRE has an instance of JVM with it, library classes, and development tools. Once you write and compile Java code, the compiler generates a class file having byte code.</p><p>Here are the important components of JRE:</p><ul><li><strong>Class loaders:</strong> The class loader loads various classes that are necessary for running a Java program. JVM uses three class loaders called the bootstrap class loader, extensions class loader, and system class loader.</li><li><strong>Byte code verifier:</strong> Byte code verifier verifies the bytecode so that the code doesn’t disturb the interpreter.</li><li><strong>Interpreter: </strong>Once the classes get loaded, and the code is verified, the interpreter reads the code line by line.</li><li><strong>Run-time: </strong>Run-time is a system used mainly in programming to describe time period during which a particular program is running.</li><li><strong>Hardware: </strong>Once you compile Java native code, it runs on a specific hardware platform.</li></ul><p>In this way, the Java program runs in JRE.</p><h3>How JVM Functions?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*pTJUUlWDDM6he18FaAe_hA.png" /><figcaption>JVM functionality</figcaption></figure><p><strong>1) Class Loader</strong></p><p>The class loader is a subsystem used for loading class files. It performs three major functions viz. Loading, Linking, and Initialization.</p><p><strong>2) Method Area</strong></p><p>JVM Method Area stores structure of class like metadata, the code for Java methods, and the constant runtime pool.</p><p><strong>3) Heap</strong></p><p>All the Objects, arrays, and instance variables are stored in a heap. This memory is shared across multiple threads.</p><p><strong>4) JVM language Stacks</strong></p><p>Java language Stacks store local variables, and its partial results. Each and every thread has its own JVM language stack, created concurrently as the thread is created. A new frame is created when method is invoked, and it is removed when method invocation process is complete.</p><p><strong>5) PC Registers</strong></p><p>PC registers store the address of the Java virtual machine instruction, which is currently executing. In Java, each thread has its separate PC register.</p><p><strong>6) Native Method Stacks</strong></p><p>Native method stacks hold the instruction of native code depends on the native library. It allocates memory on native heaps or uses any type of stack.</p><p><strong>7) Execution Engine</strong></p><p>It is a type of software that is used to test software, hardware, or complete systems. The test execution engine never carries any information about the tested product.</p><p><strong>8) Native Method interface</strong></p><p>The Native Method Interface is a programming framework. It allows Java code, which is running in a JVM to call by libraries and native applications.</p><p><strong>9) Native Method Libraries</strong></p><p>Native Libraries is a collection of the Native Libraries (C, C++), which are needed by the Execution Engine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*K6gxMAjqkrdk28Hl3xpbWw.png" /><figcaption>JDK vs JRE vs JVM</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8171a36986de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Static Block vs Constructor]]></title>
            <link>https://medium.com/@philip.niron/static-block-vs-constructor-84cd68d3fb33?source=rss-57af3553ea08------2</link>
            <guid isPermaLink="false">https://medium.com/p/84cd68d3fb33</guid>
            <category><![CDATA[static-block]]></category>
            <category><![CDATA[constructor]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Philip Niron Nithianandan]]></dc:creator>
            <pubDate>Tue, 01 Mar 2022 05:59:24 GMT</pubDate>
            <atom:updated>2022-03-01T05:59:24.031Z</atom:updated>
            <content:encoded><![CDATA[<h3>Static Block</h3><p>In a Java class, a <strong>static block</strong> is a set of instructions that is run only once when a class is loaded into memory. A static block is also called a <strong>static initialization block</strong>. This is because it is an option for initializing or setting up the class at run-time. The keyword ‘static’ indicates that it spans all instances of the class. It is like a mini-global set of instructions.</p><p>Let’s take a look at how to declare a class and a static block.</p><pre>public class SvC {<br>    static {<br>        //static block<br>        System.<em>out</em>.println(&quot;Hi, I&#39;m a Static Block!&quot;);<br>    }<br>}</pre><h3>Constructor</h3><p>On the other hand, <strong>constructors</strong> are run EACH time a new instance of a class is created. You can <strong>overload</strong> a constructor, meaning that multiple versions of the constructor can be created. Each one has to have a different number of parameters, but, otherwise, they can all be named the same. Let’s look at some examples. We’ll add the constructor after the static block statements.</p><pre>public class SvC {<br>    static {<br>        //static block<br>        System.<em>out</em>.println(&quot;Hi, I&#39;m a Static Block!&quot;);<br>    }<br>    public SvC() {<br>        System.<em>out</em>.println(&quot;Constructor 1 Says Hi!&quot;);<br>    }<br>    public SvC(int c) {<br>        System.<em>out</em>.println(&quot;Constructor 2 Says Hi!&quot;);<br>    }<br>}</pre><p>Finally, when we create an instance of the class in the main program, the given constructor is called. However, the static block only loads once in memory. Let’s test it out. The following code creates instances of the SvC class.</p><pre>public static void main(String[] args) {<br>    int counter = 15;<br>    SvC object1 = new SvC();<br>    SvC object2 = new SvC();<br>    SvC object3 = new SvC();<br>    SvC object4 = new SvC();<br>    SvC object5 = new SvC();<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/184/1*K6o6C5DWpvUH0F3byWtrKw.png" /><figcaption>Output</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84cd68d3fb33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Static block vs Empty block]]></title>
            <link>https://medium.com/@philip.niron/static-block-vs-empty-block-4531421e5f6a?source=rss-57af3553ea08------2</link>
            <guid isPermaLink="false">https://medium.com/p/4531421e5f6a</guid>
            <category><![CDATA[static-block]]></category>
            <category><![CDATA[empty-block]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Philip Niron Nithianandan]]></dc:creator>
            <pubDate>Tue, 01 Mar 2022 05:50:44 GMT</pubDate>
            <atom:updated>2022-03-01T05:50:44.374Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Static block</strong></h3><ol><li>Static block will be called when class loader is loading the class.</li><li>Always static block will get execute irrespective of object creation.</li><li>Only static variable can be initialized in static block.</li><li>It can used for initialization purpose when your application is starting.</li><li>Instance method cannot be called from static block but you can call static method inside static block.</li><li>Your application initial parameter can be initialized here, for example logger, property file and mapping file.</li></ol><p><strong>Example:</strong></p><pre>static {<br>    // initialization of static variable<br>    // only can call another static method<br>}</pre><h3><strong>Empty block or Object Block</strong></h3><ol><li>Empty block will be called when you are creating the object with new keyword.</li><li>Empty block will not get execute if you are not creating the object.</li><li>Both static and not static variable can be initialized in empty block.</li><li>It will be called before your default constructor, so preinitialization can be done here.</li><li>Instance method and static method can be called form empty block.</li></ol><p><strong>Example:</strong></p><pre>{<br>    // initialization of static and non-static variable<br>    // can call both static and non static method<br>}</pre><p><a href="https://github.com/Niron-code/Learning-with-Krish/tree/main/Blocks">Click here to explore more</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4531421e5f6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>