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 |
How do you read and print a string in java?
Where is jre installed?
Can we extend private class in java?
whst is encapsulation?when u encpsulate actually while devoloping code?
What is run time polymorphism?
6 Answers eClerx, Elementus Technologies,
What is class forname?
What is the difference between Access Modifier and Access specifier?
What is the do while loop syntax?
What does file separator do in java?
For which statements we use a label?
How do you test a method for an exception using junit?
what is mean by overriding in which situation we wil use?
5 Answers Atlas Systems, CSC, DCPL,