strings in java are objects.why?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / shankar
Strings in java are immutable i.e, not changable.It is
constant.
By,
Shanku
| Is This Answer Correct ? | 2 Yes | 3 No |
Can we able to pass objects as an arguments in java?
What are the states of thread in java?
Is vector synchronized in java?
What is race condition ?? (Threading concept) TCS 2 sept10
How many bits is a float?
Which java version is latest?
What an i/o filter?
How many bytes is a character?
How does linkedlist work in java?
Java support what type of parameter passing ?
How do you implement tree mirroring in java?
Is it possible to use string in the switch case?