Java Structure

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Java Structure

1. Comments – This is where you can input sentences or description of the codes to arrange
and let you remember which part you are working on when you are coding long procedures.

2. public – this part is important because this will enable the program to run using the codes in
the main.

3. static – This one is responsible on creating a label to the main codes. Giving it a name so that
main can be called.

4. void – This is basically what we need to input because there is nothing to return to so we
place void.

5. main – this is the fixed code to use when calling codes the java it will always look for main.

6. (String[] args) – one of the java command line arguments that reads the single argument
string

You might also like