HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Java Main Method Tutorial - Everything You Need to Know

124,062 views March 10, 2020 9:51

Watch on YouTube
ChannelAlex Lee

Description from the creator

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

When you click run, the code inside the main method in java gets run. This lets you control how the program behaves. The String[] args means that it can use an array of strings as arguments from the run command. For example:

java main hello dude

now args is an array with {"hello", "dude"}

I hope this helps you with the main method in java :) At first, I had no idea what String[] args was, how to pass parameters into the main method, or even what the keywords in front of the main method were.

I hope you enjoyed this main method in java tutorial! -

Full Java Tutorial For Beginners Playlist: youtube.com/playlist?list=PL59LTecnGM1NRUyune3S…
Free Tips: bit.ly/3U6HXcb

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

~

Alex Lee

About this tutorial

Alex Lee published this 9:51 video tutorial on March 10, 2020. It has been watched 124,062 times on YouTube.

Channel
Alex Lee
Category
Education
Duration
9:51
Published
March 10, 2020
Views
124,062
Likes
3,641

Tags

Share

This tutorial in other languages