java programming tutorial part 1

0

Java is widely used language by professionals among other languages. There are so many issues we can see regarding the java language at the same time java has some major beneficial features.

In this article, my effort will be given toward representing the basic structure of the java language. below two major points are given to understand the basic rule of java language.

  1. the class name
  2. the file name.

to run a java program, above two names are given have to be same. Otherwise we will face an error.

for example, the file name is myfirstprogram.java

in that case the class name also will be myfirstprogram, so the file will start by

“public class myfirstprogram{}”the basic program will be
public class myfirstprogram{
public static void main(String[] args) {
//the code will be here
}
}
from here the actual java program starts.

Leave A Reply

Your email address will not be published.