Answer Posted / modi
In Java strings are objects designed to represent a sequence
of characters. Because character strings are commonly used
in programs, Java supports the ability to declare String
constants and perform concatenation of Strings directly
without requiring access to methods of the String class.
This additional support provided for Java Strings allows
programmers to use Strings in a similar manner as other
common programming languages.
A Java String is read-only and once created
the contents cannot be modified.
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
How to perform linear search in java?
Give example to differentiate between call by value and call by reference.
How does map works in java?
What are the two main uses of volatile in Java?
What is a dynamic array in java?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What are latest features introduced with java 8?
Is void a wrapper class?
How is the marker interface used in Java?
What does a method signature consist of?
How can we make a class singleton?
What is the purpose of the finalize() method?
What is method overloading with type promotion?
Does constructor return any value?
What is final access modifier in java?