zuai-logo
zuai-logo
  1. AP Computer Science A
FlashcardFlashcardStudy GuideStudy GuideQuestion BankQuestion Bank

Writing Classes in AP Computer Science A

Question 1
college-boardComputer Science AAPExam Style
1 mark

Can static methods can access and/or change the values of static variables?

Question 2
college-boardComputer Science AAPExam Style
1 mark

Which of these can be accessed without creating an object of the class?

Question 3
college-boardComputer Science AAPExam Style
1 mark

If two different objects from the same class access a method that modifies a static field within that class, how does it affect subsequent access by either object?

Question 4
college-boardComputer Science AAPExam Style
1 mark

When would designating member function 'static' NOT appropriate?

Question 5
college-boardComputer Science AAPExam Style
1 mark

In what scenario would refactoring several related methods from being instance methods into being class (static) methods NOT make sense?

Question 6
college-boardComputer Science AAPExam Style
1 mark

How do changes made to a static variable from one instance of a Java Class impact other instances?

Question 7
college-boardComputer Science AAPExam Style
1 mark

When writing Java programs, why would you include a finally block after catch blocks?

Feedback stars icon

How are we doing?

Give us your feedback and let us know how we can improve

Question 8
college-boardComputer Science AAPExam Style
1 mark

What does it mean if a field is declared with both 'static' and 'final' modifiers?

Question 9
college-boardComputer Science AAPExam Style
1 mark

In Java, what will happen if you try to access a non-static variable from within a static method?

Question 10
college-boardComputer Science AAPExam Style
1 mark

What is a characteristic of a static method in Java?