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 |
Is class forname reflection?
What are the five major types of reference sources?
Why do people says “java is robust”?
What is the return type of a program?s main() method?
what is difference between String buffer and String builder?
How to sort an unsorted array in java?
what is difference betwenn Access Specifier and Access Modifier ????
What is the size of a string in java?
What is the difference between preemptive scheduling and time slicing?
What’s a deadlock?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
what are the oops concept in java explain with real time examples
24 Answers Accenture, Bosch, Consummate Technologies, CTS, Current Technologies, iNautix, Infosys, Kekran Mekran, QA InfoTech, RTRT, SofTech, Tech Mahindra, Thorogood, Timios, Wipro,