No, this is not the same in Java. There is no null terminator. Java strings are objects, not points of character arrays. It supports length along with Unicode characters, so there is no need to look for a null delimiter.
You do not need to ask here: look at the source for String.java in src.zip that comes with your JDK. Here is its beginning:
public final class String implements java.io.Serializable, Comparable<String>, CharSequence { private final char value[]; private final int offset; private final int count; private int hash;
source share