For <code>String s = "hi";</code>, calling <code>s.length()</code> is
- Acheck_circle
Instance method call (on s)
- B
Constructor
- C
Static method call
- D
Compile error
Explanation
Instance methods called on object via dot notation.
AP Computer Science A· difficulty 3/5
For <code>String s = "hi";</code>, calling <code>s.length()</code> is
Instance method call (on s)
Constructor
Static method call
Compile error
Explanation
Instance methods called on object via dot notation.
Want 10 more like this — adaptive to your weak spots?