CSA Test- Intro, Data Types, Using Objects, Decisions

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

char

2 bytes - primitive that stores one character - uses single quotes

2
New cards

boolean

1 bit- primitive that stores either true or false

3
New cards

byte

1 byte- holds 8 bits of memory and stores integer values from -128 to 127

4
New cards

short

2 bytes - holds 16 bits of memory and stores integer values from -32768 to 32767

5
New cards

int

4 bytes - holds 32 bits of memory and stores integer values from -2billion to +2billion

6
New cards

long

8 bytes - holds 64 bits of memory and stores integer values from -10,000000000000000000 to 10,000000000000000000

7
New cards

float

4 bytes- holds 32 bits of memory and stores decimal values with up to 6 or 7 digits

8
New cards

double

8 bytes - holds 64 bits of memory and stores decimal values up to 15-16 decimal places

9
New cards

variable declaration

dataType variableName = value;

10
New cards

constant declaration

final dataType variableName = value;

11
New cards

Casting

(new dataType) value

12
New cards

Object Construction

ClassName objectName = new ClassName(parameters);

13
New cards

Method Call (static)

ClassName.methodName(parameters);

14
New cards

Method Call (Instance)

objectName.methodName(parameters);

15
New cards

Importing a Class

import java.something;

16
New cards

if statement

if (condition)

statement;

else

statement;

17
New cards

if-else-if statement

if (condition)

statement;

else if (condition)

statement;

.

.

.

else

statement;

18
New cards

if else statement

if (condition)

statement;

else if (condition)

statement;

19
New cards

switch statement

switch (expression) {

case value1:

statement;

break;

case value2:

statement;

break;

case value3:

statement;

break;

.

.

.

default:

statement;

break;