What is intern method in java?
Answer / Arvind Nath Mishra
"The intern() method returns the String object if it is already interned (i.e., if an exact match for the string can be found among the strings that have been previously interned). If not, it creates a new String object and internally stores it."
| Is This Answer Correct ? | 0 Yes | 0 No |
Why string is not a wrapper class?
What is the difference between abstract class and interface?
Can a class be final?
In the below example, how many string objects are created?
Explain features of interfaces in java?
How to access a variable if it is declared as private?
What is string in java?
What is string literal in java?
How OOPS concept is achieved in Java?
6 Answers Cognizant, JPMorgan Chase, Xavient,
1) There are 10 different threads in runnable state. Each having priority 1 to 10. How does the CPU schedules or executes these threads?
What is unicode datatype?
what is purpose of writting public static void main(Strind arg[]) in java..?