Java J2EE Question and Answers
5. | Define immutable object? |
---|---|
An immutable object can't be changed once it is created. | |
6. | What is String subsequence method? |
---|---|
|
|
7. | How to split String in java? |
---|---|
We can use split (String regex) to split the String into String array based on the provided regular expression. | |
8. | What are different ways to create String Object? |
---|---|
|
|