Posted On: Dec 18, 2020
In Java, intern() is a native method of the String class. The String.intern () returns a reference to the equal string literal present in the string pool. The intern () method is applicable to String objects created via the 'new' keyword. When it is executed then it checks whether the String equals, this String object in the pool or not.
Never Miss an Articles from us.
Multithreading is a programmable approach to achieve multitasking. Multithreading in Java is a process of executing multiple threads cumulatively. A thread is the smallest unit of processing which is ...
A Java collection framework is an architecture that was added to Java 1.2 version. The Collection Framework provides a well-designed set of classes and interfaces for storing and manipulating a group ...
Different types of Classes available in Java are as follows:Concrete class Abstract class Final class Static class Inner ClassConcrete class In Java, A concrete class is a type of subclas...