Exam 1 Review Flashcards
1
Q
primitive vs reference types
A
idk yet
2
Q
what is static typing and does java use it?
A
idk
3
Q
Are strings mutable or immutable?
A
idk
4
Q
When should you use == vs .equals()?
A
idk
5
Q
“Donkey” + “Kong”?
A
idk
6
Q
“b”-“a”
A
idk
7
Q
int x =5;
“Donkey” + x;
x+”Donkey”;
A
idk
8
Q
5/2
A
idk
9
Q
How do you declare an array? 3 ways
A
idk
10
Q
Arrays are what kind of objects?
A
idk
11
Q
int[] x or Integer[] x?
A
idk
12
Q
Is java object or reference oriented?
A
idk
13
Q
What does object orientated mean?
A
idk
14
Q
What are the 2 characteristics of a class
A
State and behavior
15
Q
What is state?
A
reflected by instance variables