Section 1

Preview this deck

for

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (22)

Section 1

(22 cards)

for

Front

Used to create loops. It initializes a boolean expression and increments.

Back

System.out.println vs System.out.print

Front

println- 1) sends output to the current line 2) then moves the beginning of a new line. print- will generate output all on the same line.

Back

Class header

Front

First line of a class

Back

Tab character

Front

t\ (t backslash)

Back

Statements

Front

Lines inside the method <statement>

Back

Quotation marks

Front

\"

Back

int

Front

To declare a variable that can hold a 32-bit signed two's complement integer. This keyword is also used to declare that a method returns a value of the primitive type int

Back

double

Front

Can hold larger or small numbers or floating point values such as 2.5, 11.5

Back

Public vs Private

Front

Public its available to everyone. Private only available to you.

Back

Curly Braces { }

Front

the program code in a class is enclosed in curly brace characters ({ }) group together related bits of code the curly braces are indicating that everything defined within

Back

void

Front

To declare that a method does not return any value.

Back

Method

Front

A method represents a single action or calculation to be performed.

Back

For a new line

Front

n\

Back

static

Front

Used to declare a field, method, or inner class as a class field. Also is used to define a method as a class method.

Back

Identifiers

Front

The words used to name parts of a Java program.

Back

char

Front

Primitive type.

Back

Boolean

Front

true or false yes or no 1 or 0 So instead of typing int or double or string, you just type boolean.

Back

Method header

Front

First line of a method ex. public static void main (String [ ] args)

Back

What must identifiers have?

Front

Identifiers must start with a letter, which can be followed by any number of letters or digits. Toinclude the underscore and dollar-sign characters (_ and $)

Back

What tells the compiler to print the statement?

Front

System.out.println(" " );

Back

What is character terminates a statement?

Front

semicolon ;

Back

backslash character

Front

\\

Back