Object Creation and Storage (Instantiation)
AP Computer Science A · Flashcards · Application
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 8
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
What is the result of 'Car myCar = null;'?
QUESTION
Identify the error: 'Car myCar = new Car()'
QUESTION
What is the result of 'Car[] cars = new Car[10];'?
Tap to flip before you grade
ANSWER
Array of 10 Car references. Array holds references, objects created separately.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card