How can I create a String object from a byte array
byte arr[MAX_SIZE]; // Java
where one of the array elements is a C null terminating byt
It won't magically stop at the null terminator. The null character doesn't terminate strings in Java. You will have to find the index of the first null character and stop there. Use the String(byte[] arr, int offset, length) constructor after that.
String(byte[] arr, int offset, length)