About Question enthuware.ocpjp.i.v11.2.868 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
Deleted User 6318

About Question enthuware.ocpjp.i.v11.2.868 :

Post by Deleted User 6318 »

In the exam, you may get a question that says "100 characters", in that case, ensureCapacity() may not be a valid option.
And then what would be valid way? ;)
I see there is even no such simple field in StringBuilder nor AbstractStringBuilder as capacity, it's somehow not that clearly for me calculated...

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.868 :

Post by admin »

There is no way to ensure the capacity at exactly 100 (or any specific number). The point is to read the problem statement carefully.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests