Intro to Java Flashcards Preview

Programming > Intro to Java > Flashcards

Flashcards in Intro to Java Deck (39):
1

Find the length of a string

.length

2

Make a note that the computer ignores

//

3

Ask the user to say yes or no

confirm()

4

Request in input from the user

prompt()

5

What is a string?

Letters, spaces, numbers

""

6

What are the boolean values?

True or False

7

prints to the console

console.log()

8

Greater Than

>

9

Less Than

<

10

Less than or equal to

<=

11

Greater than or equal to

>=

12

Equal to

===

13

Not equal to

!==

14

Syntax of an "if" statement

if()
{
code
}

15

Syntax of an "If else" statement

If()
{
code
}
else
{
code
}

16

%

Modulo

divides the first operator by the second operator and gives the remainder

17

How do you return a substring?

"string".substring(X,Y)

The variables are numbers
X = the beginning of the substring
Y = the end of the substring

The first "cut" is to the left of the first character. Counting starts at "0".

18

How do you declare a variable?

var varName = data type

variable names are case sensitive

19

What kinds of scope are there?

Global scope

Local scope

20

Global scope

A variable declared outside a function can be accessed anywhere once declared.

21

Local scope

A variable defined inside a function is local and cannot be accessed outside the function.

22

JDK

Java Development Kit

The software for developers who want to write Java programs.

23

The software for developers who want to write Java programs

JDK

Java Development Kit

24

JRE

Java runtime environment.

The software for consumers who want to run Java programs. Contains the virtual machine but not the compiler.

25

The software for people who want to run Java programs.

JRE

Java runtime environment.

26

SE

Standard Edition

The platform for use on desktops and simple server applications.

27

The platform for use on desktops and simple server applications.

SE

Standard Edition

28

EE

Enterprise Edition

The Java platform for complex server applications.

29

The Java platform for complex server applications.

EE

Enterprise Edition

30

ME

Micro Edition

The Java platform for use on cell phones and other small devices.

31

The Java platform for use on cell phones and other small devices.

ME

Micro Edition

32

Java 2

J2

An outdated term that describes Java versions from 1998 to 2006.

33

An outdated term that describes Java versions from 1998 to 2006.

J2

Java 2

34

SDK

Software Development Kit

An outdated term that describes the JDK from 1998 to 2006

35

An outdated term that describes the JDK from 1998 to 2006

SDK

Software Development Kit

36

Update

u

Oracle's term for a bug fix release.

37

u

Update

Oracle's term for a bug fix release.

38

NetBeans

Oracle's integrated development environment

39

Oracle's integrated development environment

NetBeans