Question: Size vs Capacity The NetvidsDatabase class had two methods called size and capacity. What is the difference between size and capacity? Group of answer choices
Size vs Capacity The NetvidsDatabase class had two methods called size and capacity. What is the difference between size and capacity?
Group of answer choices
Capacity represents how many Movie objects are currently in the NetvidsDatabase and size represents how many Movie objects memory will allow.
Capacity represents how many Movie objects are currently in the NetvidsDatabase and size represents how many Movie objects can fit into the NetvidsDatabase before the underlying array needs to be expanded.
Size represents how many Movie objects are currently in the NetvidsDatabase and capacity represents how many Movie objects can fit into the NetvidsDatabase before the underlying array needs to be expanded.
Size represents how many Movie objects are currently in the NetvidsDatabase and capacity represents how many Movie objects memory will allow.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
