Write a code to prove that strings are immutable in java?Following program demonstrate it. File: ProveStringImmutable .java Output: Before Modification in st1 Both pointing to the same reference After Modification Both are pointing to different reference |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India