Intermediate
Java
Q67 / 100
What is method chaining?
Correct! Well done.
Incorrect.
The correct answer is C) Each method returns this, allowing multiple calls on the same object in one expression
C
Correct Answer
Each method returns this, allowing multiple calls on the same object in one expression
Explanation
Method chaining (fluent interface) returns this from each method, enabling patterns like StringBuilder.append("a").append("b").toString().
Progress
67/100