Explain public static void main(String args[]) in Java.

public it specify the accesss level of the method which can be accessed by any class.

static we have to declare the main method as static so that we can call this method without intializing the class, we can call this method directly bu using class name.If we didnt decalre this method as static mean the JVM will throw an error saying the main method is not declared static.

void it says the method has no return type

main its is the entry point of JVM. The JVM execute the program by invoking this main method.

String args[] is the parameter passed to the main method.

Knowledge is everything.Check out my app at https://play.google.com/store/apps/details?id=com.vibe.britevibe

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Unit testing approach for SQL based data platform development — Part 1

Evolution of Data Engineering Technologies

MSSQL Profiling Extended Events

On-Premise vs Cloud-Based Load Testing

A minimalistic approach to deploying any application to OpenShift with CI-CD capability

WSL :: How Windows is saving Linux

Linux GUI experience

SQL Window Functions

Considering adding to your coding knowledge?

Aave Lending Protocol set to go live on PlutusDeFi.com!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pandiyan Mani

Pandiyan Mani

Knowledge is everything.Check out my app at https://play.google.com/store/apps/details?id=com.vibe.britevibe

More from Medium

Coding standards in Java

Priority Queue in Java

Learn simple — Linked list using java

Head First Java Chapter 12 summary