Hello, World

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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


Kaugnay na mga set ng pag-aaral

Payroll Accounting terms for final study guide acct 2513

View Set

Mots commençant par N (français-espagnol)

View Set

chapter 12 notes - trace elements

View Set

Guide to TCP/IP Ch.9 Review Questions 1-20

View Set

The Bucket List - Carter explains his bucket list

View Set

Chapter 7 Questions: Page 170 - 176

View Set