Intro to Java
Intro to Java
String[] args: It stores Java command line arguments in a array of type java.lang.String class.
{ … } left brace and right brace define the body of the function.
Benefits of Programming in Java
• Get started quickly
Although the Java programming language is a powerful object-oriented language, it's easy
to learn, especially for programmers already familiar with C or C++.
• Write less code
Comparisons of program metrics suggest that a program written in the Java programming
language can be four times smaller than the same program in C++.
• Develop programs faster
Development time may be as much as twice as fast compared to writing the same program
in C++ because you write fewer lines of code and it is a simpler programming language
than C++.
• Avoid platform dependencies.
You can keep your program portable by avoiding the use of libraries written in other
languages and native methods.