answersLogoWhite

0

Is string is an object

Updated: 8/20/2019
User Avatar

Wiki User

8y ago

Best Answer

No. A string is, by definition, a character array.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is string is an object
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you make object from string in java?

String itself is an object dude... If you want an object out of a string then you can do this. Object obj = (Object) str; //str is the String you want to convert to object.


How can you verify the verticality of an object using a piece of string with a weight on the end?

For this hammer a nail very close to the object into the object and hang the string on that nail. Then let the string with weight stop swinging (best to do it in an enclosed room with no wind). When the string stops swinging, if the straight-edged object is parallel with the string, then the object is completely vertical


Is string an object?

No. A string is, by definition, a character array.


Where string is stored on Heap or Stack in java?

A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.


How objects are predefind types?

An object is created from a class, like a house made from a blueprint. The object will therefore be of the type of its class. For instance, a String object will be of type String, which is defined by the String class.


How getchar can be used to read multicharacter string?

[object Object]


In what direction does an object rotating by a string travel if suddenly the string breaks?

inward


How do you find the perimeter of a jigsaw puzzle using string?

You can find the perimeter of any planar (flat) object using string by wrapping the string around the outside of the object, noting the point on the string where you return to the starting point, and then measuring the length of that portion of the string.


When does the memory created for an object?

Memory for a Java object gets created when the object is instantiated. For example private String name = "rocky"; At the end of this statement the memory for the string object name gets created in the memory.


What is the difference among string and string buffer and string builder?

String is the immutable class that means the object f that class never be changed. String is the Sequence of character.


What is used to measure an irregular object?

string


What is difference between System.String and System.StringBuilder classes?

String and StringBuilder classes are used to store string values but the difference in them is that String is immutable (read only) by nature, because a value once assigned to a String object cannot be changed after its creation. When the value in the String object is modified, a new object is created, in memory, with a new value assigned to the String object. On the other hand, the StringBuilder class is mutable, as it occupies the same space even if you change the value. The StringBuilder class is more efficient where you have to perform a large amount of string manipulation.