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 java arraylist hold different types?
What do you mean by append?
What are keywords give examples?
What is a programming object?
What will happen if static modifier is removed from the signature of the main method?
Why to use nested classes in java?
How many digits is int32?
How can you say HashMap is syncronized?
what is the difference between thread and runnable types? : Java thread
What is abstraction with strong example program? (not a general program)
What are constants?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?