1. Using Objects and Methods

Calling Instance Methods — Quiz

Test your understanding of calling instance methods with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

What does it mean to call an instance method in Java?

Question 2

Which statement correctly calls the $length()$ instance method on a $String$ variable named $word$?

Question 3

If $message$ stores the String $"Hello"$, what is the value of $message.length()$?

Question 4

What is the result of calling $"APCS".substring(1, 3)$?

Question 5

Which is the best reason to use an instance method instead of trying to access the object's data directly?
Calling Instance Methods Quiz — AP Computer Science A | A-Warded