Hello, World
For the special main method of a Java program, the method header must always look like this:
public static void main(String[] args)
main method
A special method that's called automatically when a Java program is executed It's where you put the code that "kicks off" a Java program The starting point of a Java program
Syntax Coloring
Certain language elements are shown in different colors (keywords in blue, character strings in maroon, etc. It generally makes the code easier to read
Class Body
Is contained between curly braces, and it's contents are indented to make them easier to read. A class can contain multiple methods, just like a method can contain multiple statements.
A program is expressed in a particular _________________
Programming language, such as Java. Other programming languages include Python and C++.
What is syntax coloring?
Showing certain elements of program code in different colors
White space
Spaces, tabs, and blank lines in a program Extra white space is ignored by the compiler. The indentation of code within a class or method is not technically required by the compiler Part of a set of programming conventions that all programmers should follow.
What does the term case sensitive mean?
The difference between upper case and lower case letters matters.
Method header
The first line of the header
T or F: The body of a Java method is enclosed in curly braces: { }
True
T or F: The println statement is a call to a method.
True
Method body
When the statements of a method are contained between curly braces, { and }. The statements in the method body are indented to show that they are part of the method.
Console Window
Where the println statement prints a line of output [to the system output window]
The main method of a Java program must have which of the following method headers?
public static void main(String[] args)
Method
A collection of programming statements that are given a name
Object
A programming construct that provides services you can use
Program
A sequence of instructions that can be interpreted and executed by a computer.
Statement
A single instruction in a programming language