public static void main(String args) In Java - What is String args?

Опубликовано: 20 September 2026
на канале: Alex Lee
18,625
545

$1,500 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE1500. See if you qualify for the JOB GUARANTEE! 👉 https://bit.ly/3HX970h

In this video, I show you what String[] args means in the main method:

public static void main(String[] args) {}

String[] args is just a variable you can use in the Main method! It's an array of Strings that gets passed through the main method when it gets run. There are a few ways to do that, which I show you in this video :)

I hope you enjoyed this tutorial on what "args" is in public static void main(String args) in Java!!

Full Java Tutorial For Beginners Playlist:    • Full Java Course by Alex Lee  
Free Tips: https://bit.ly/3U6HXcb

Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.

~

Alex Lee