What is Interning?

What is Interning?

- Interning is the process of converting duplicated strings to shared ones.

- Interned Strings avoid duplicate strings.

- These strings have only one copy that can have many references point to it.

- It makes some string processing tasks more efficient.

- Syntax:
public String intern()
String vs. StringBuffer class
String vs. StringBuffer class - String class is immutable which means it can't be modified once declared.....
Significance of StringTokenizer class
Significance of StringTokenizer class - This class is used to break the string into tokens.....
What are the ways to create a thread?
What are the ways to create a thread? - A thread can be created extending from the Thread class......
Post your comment