5.3 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Identifer

A

Name given for variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Primitive

A

Primitive types are the most basic data types available within the Java language

There are 8: boolean, byte, char, short, int, long, float and double..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Primitive

A

Primitive types are the most basic data types available within the Java language

There are 8: boolean, byte, char, short, int, long, float and double..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Variable , instance variables

A

*
A variable provides us with named storage location for a value that a program can manipulate.

Instance variables are non-static variables and are declared
in a class outside any method, constructor or block.
So each object has a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Local variable

A

A variable defined within a block or method or constructor is called local variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Static variable

A

static variable belongs to the class instead of a specific instance. This means that all instance objects of the class share the same value and if that value is altered, it is altered for all the instance objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly