Counted and Terminated String in Java
<blockquote>
  <p>Two methods of implementing a string. A counted string explicitly
  records its length. The terminated string’s length is determined by an
  end-of-string mark.</p>
</blockquote>

<p>Can anyone give an example of counted string and a terminated string in java. </p>
