#Java | String args[] | Command Line Arguements in Java | Structure of Java | Telugu | Dr.Venkat

preview_player
Показать описание
Need of String args[] or Command Line Arguments:

Link for public static void main() :

main() method is called by JVM from Command Line. So we can pass the values from JVM to main() method.

Passing the values or aguments from JVM through command line is called as Command Line Arguments.

Command Line Or Command Prompt is a place where we type the commands like javac, java, javap etc...

Java Program:
------------------------
-------------------------
class Demo
{
public static void main(String args[])
{
}
}

-------------------------------
Command Prompt
-------------------------------
java Demo Dhoni India
Рекомендации по теме
join shbcf.ru