Session - 57 (String Constant Pool Area || difference between string == operator vs equals() method)

preview_player
Показать описание
In this video, you can understand:
String:
1. Def - sequence of characters.
2. Initialization:
a. String as a Literal:
String variableName = "value";

b. String as an Object:
String objName = new String("value");

3. String is a class in java
4. String class is the final class in java
5. String class provides implementation to CharSequenece, Serializable, Comparable
6. Syntax:
public final class String implements CharSequenece, Serializable, Comparable
7. String objects are immutable.
8. If we require mutable string objects then we can create an object of StringBuffer / StringBuilder
9. String literals are stored in (String Constant Pool Area) / (String Literal Area)
Рекомендации по теме