Questions on String class is most importance topic for any core java or J2EE interviews. It doesn't matter whether application is core java desktop application,web application,mobile application and or any Enterprise application. String is one the fundamental of java programming.
I Will try add as many question that are most important respective to String class and I will also try to give you the internal picture of String Class and some performance tips.
- Why String is immutable ?
- What is String Pool in Java ?
- Is String is thread safe in Java ?
- What does intern() method do in java ?
- How subString() work in java ?
- Why char array is better than String for storing the password ?
- Why java doesn't support operator overloading ?
- Why multiple inheritance is not supported in java ?
- C++ support multiple inheritance why not java ?
If you know anyone who has started learning Java, why not help them out! Just share this post with them.Thanks for studying today!...