What do you mean by string immutability in Java?

Ques:What is meant by strings are immutable in java?
Ans: Immutable means that once an object of that Class has been created it can't be altered.

This is useful as it means you can pass references to the object around, without worrying that someone else is going to change it's contents.

Why String is immutable?
If they were mutable then there would be no String pool implementation and the performance gains of the String pool become lost.

Ques: What is the difference between Spring and Spring-MVC.
Ans: Spring is composed of three parts:
Spring dependency,spring mvc,Spring AOP

Spring-MVC is itself part of the Spring.Spring mvc is basically used for web applications.

People who read this post also read :



1 comments:

Amazing Article, thank you!. I am very glad to read your informative & practical blog. Kindly keep updating your blog.
Java Developer is a wonderful career for IT students.To start Dream Career to become a Java developer learn from
Java Training in Chennai
. or learn thru Java Online Training from India .

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More