Calling Class Methods
AP Computer Science A · Flashcards
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 23
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the error: public void static print() {}
QUESTION
How do you call a static method from a different package?
QUESTION
What happens if you call a static method with a null reference?
Tap to flip before you grade
ANSWER
No error; static method is called on class. Static methods belong to class, not instance.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card