Data Structures and Algorithms Topic - 2 Flashcards
1
Q
executable statements are placed in functions, known
as ________.
A
Method
2
Q
Any set of statements between the braces “{” and “}” define a ________.
A
Program Block
3
Q
The name of a class, method, or variable in Java is called an _________.
A
Identifier
4
Q
Most commonly used data types :
A
- boolean
- char
- byte
- short
- int
- long
- float
- double
5
Q
- also called as “fields”
- represent the data associated with an object of a class
A
Instance Variables
6
Q
are blocks of code that can be called to perform actions
A
Method
7
Q
a method that returns information to the caller without changing any instance variables
A
Accessor Method
8
Q
a method that may change one or more instance variables when called
A
Update Method
9
Q
is effectively a mutable version of a string
A
StringBuilder Class