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 |
Are there structures in java?
What is bean? Where it can be used?
What is a double vs float?
Consider that class classA, abstract class classB, and final classC have been defined.Which one of the following is correct? 1. classA extends classC implements classB 2. class A extends classB, classC 3. classA extends classB 4. classB implements classC
Difference between stack and queue?
What is the difference between heap memory and stack memory?
Can we create a constructor in abstract class?
Explain about exception propagation?
Is string a keyword in java?
What is linked hashmap and its features?
How are multiple inheritances done in Java?
Can anonymous class have constructor?