Unit 1 Flashcards
The initial ____ ________ is created when you create a new file on CodeHs
Java Skeleton
The first part of the Java Skeleton is the?
Programs class (Class Program)
Everything in the class program is wrapped in?
Curly Brackets [ ]
The name of the class must match the?
Java File
The second point that is vital to the Java Skeleton is the?
The Main Method
What is the Main Method?
The point where Java programs start their execution
If the Main Method is not included…
There will be an error
The Main Method will read and execute any code that is enclosed in…
Two curly brackets
{
}
Print statements are…
Used to print calculations, messages, alerts, and other output to the console for other users to see
The semicolon is needed in ( ; ) in…
Any individual lines of code
The code for writing a print statement is?
System.out.println(¨Hello World¨)
The system class method println is broken up into….
Two componets
1) Class Method
2) System Print Method Input
The class method in an print statement..
Indicates to java how the message should be output into the console program
The system print method input…
Contains the content that will be displayed in the console
A string literal is a…
Sequence of characters enclosed in double quotations “ ” (Anything you can type on a keyboard can be included in a string literal as long as it is ENCLOSED IN DOUBLE QUOTATIONS)