Java Intro to Java Web Development with Spark Bells and Whistles Building Our Model

Pavle Delic
Pavle Delic
8,088 Points

Why boolean add?

Why is the add method returning boolean? Void makes much more sense to me...

Ikuyasu Usui
Ikuyasu Usui
45,262 Points

Because there will be a case that due to an unexpected problem, the method fails to add the item.