Chapter 2.1 : The basic java application Flashcards
What is the syntax?
Syntax rules specify the basic vocabulary of the programming language
What is the meaning of a semantically correct program?
One that does what you want it to do
What are pragmatics?
The overall design of a program that makes it easy for people to read and understand.
What is a subroutine?
It consists of instructions for performing some task, chunked together, and given a name.
Example: System.out.println(“”)
What is a built in subroutine?
One that is already defined as part of the language and therefore automatically available for use in any program.
All programming in Java is done inside _______.
classes
What is the command that prints a message to the screen?
System.out.println()
What do we need in order to define a program?
the main subroutine
What is the main subroutine?
public static void main(String[] args) {
}
What does the “public” in the first line of the main method mean?
It means that the routine can be called from outside the program
What is the basic programming procedure?
- Problem Analysis- inputs, outputs, errors
- Algorithm construction - pseudocode
- Coding
- Testing