Yes, you are correct. By calling new you are creating a reference to an object, you are doing a similar operation when you declare a new String.
5
solved What is the error in each Java Statement?
Yes, you are correct. By calling new you are creating a reference to an object, you are doing a similar operation when you declare a new String.
5
solved What is the error in each Java Statement?