Can substring create new object?
Answer / Shreyansh Verma
Yes, the substring method in Java creates a new String object. It returns a new string that is a sub sequence of the original string.
| Is This Answer Correct ? | 0 Yes | 0 No |
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
how to execute main()
What are Font and FontMetrics classes?
How to find the length and capacity of a string buffer ?
What are event-delegation model and event-inheritance model? Which is best?
What is double checked locking in singleton?
Does chrome use java?
Can we define constructor in inner class?
What is a numeric digit?
How do u provide security in java
What is Java exception handling?
How many bytes is double?