<?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 gujula_dee on Medium]]></title>
        <description><![CDATA[Stories by gujula_dee on Medium]]></description>
        <link>https://medium.com/@gbdarsha?source=rss-7f923058e5c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vxZtQndpPea7KPv4</url>
            <title>Stories by gujula_dee on Medium</title>
            <link>https://medium.com/@gbdarsha?source=rss-7f923058e5c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 19 May 2026 12:49:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gbdarsha/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[java!! public static void main(String args[]) anymore?]]></title>
            <link>https://medium.com/@gbdarsha/java-public-static-void-main-string-args-anymore-43cf9b3a1cf2?source=rss-7f923058e5c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/43cf9b3a1cf2</guid>
            <dc:creator><![CDATA[gujula_dee]]></dc:creator>
            <pubDate>Fri, 07 Jul 2023 08:02:40 GMT</pubDate>
            <atom:updated>2023-07-08T12:48:09.344Z</atom:updated>
            <content:encoded><![CDATA[<h3>other ways to public static void main(String args[ ]) ?</h3><p>Hello World !!! One of the things that comes to my mind when I hear Java, is the “public static void main(String args[])” …the main method.</p><p>Java is widely known for its strict and verbose syntax, which can make it appear lengthy compared to other programming languages. Now, let’s delve into the fascinating world of the main method in Java!</p><p>“The main method is a crucial entry point in a Java program. It serves as the starting point for the execution of a Java application. When you run a Java program, the Java Virtual Machine (JVM) diligently searches for the main method as the initial point of entry and eagerly begins executing the code inside it.” we all have heard of this haven’t we???</p><p>While we commonly encounter the familiar void main() signature in Java-21, there are alternative ways to define the main method. However, for the sake of brevity,<strong> let&#39;s keep our focus on the traditional </strong><strong>public static void main(String[] args) declaration,</strong>exploring possibilities that awaiting you beyond the gates of the main method!!</p><p>Here we go!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FrbQ5gdnNrsCzZHqyHF%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FrbQ5gdnNrsCzZHqyHF%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FrbQ5gdnNrsCzZHqyHF%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/f96e4f8fed7a04d04334dd71db16dc40/href">https://medium.com/media/f96e4f8fed7a04d04334dd71db16dc40/href</a></iframe><p>So staring off,Am not gonna say you what the psvm does, getting straight to the point!</p><ol><li>the main method would still work if the access modifiers are not in order! Yes! <strong>static public void main(String args[]) </strong>is valid .</li><li>for sure its known that String args[] is just an array of String and variable name could be any unless its a valid identifier! so,<strong> public static void main(String &lt;your_name&gt;[])</strong> is valid.</li><li>Variable Arguments (Varargs) were introduced in JDK 5. From JDK 5 onwards, we can declare a method with a variable number of arguments.now, <strong>public static void main(String…args) </strong>is valid.</li><li>When it comes to the placement of the square brackets in the parameter declaration, there is flexibility in writing the code…so,.. <strong>public static void main(String[] args)<br>public static void main(String args[])<br>public static void main(String []args)</strong> all three are valid</li><li>Other access modifiers that you can add along with the main method are:final ,synchronised ,strictfp so now….we can also have thisss……… <strong>public final static synchronized strictfp void main(String…args)</strong> is a valid Java main method declaration! bruh!</li></ol><p>if you find anyother do comment :p</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fg8EyqN0xYhVuQMGbw4%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fg8EyqN0xYhVuQMGbw4%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fg8EyqN0xYhVuQMGbw4%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe55d5c1d094f966459975e212cab22a/href">https://medium.com/media/fe55d5c1d094f966459975e212cab22a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43cf9b3a1cf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>