Why string objects are immutable in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What do you understand by Header linked List?

0 Answers   Genpact,


What is loop in java?

0 Answers  


What are the object and class classes used for?

0 Answers  


Is java a virus?

0 Answers  


What is the difference between object oriented programming language and object based programming language?

0 Answers  






What is meant by constructor?

8 Answers  


When should I use stringbuffer?

0 Answers  


Does substring create a new object?

0 Answers  


hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class

1 Answers  


Why is stringbuffer called mutable?

0 Answers  


basic difference b/w ALL types of JDBC driver.

1 Answers   Systematix,


Can inner class extend any class?

0 Answers  


Categories