If you are not 100% sure prefer String.valueOf(value) over new String(value).
Inside valueOf method we have check on null so that you’ll never get NPE
If you are not 100% sure prefer String.valueOf(value) over new String(value).
Inside valueOf method we have check on null so that you’ll never get NPE