Constructors
AP Computer Science A · Flashcards
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 37
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
How are static fields initialized in constructors?
QUESTION
Find the issue: class C { C(int x) { this.x = x; } }
QUESTION
When is the default constructor provided?
Tap to flip before you grade
ANSWER
When no other constructors are defined. Java removes default constructor once any constructor is explicitly created.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card