answersLogoWhite

0

The string can never be modified, they are immutabile. If you think a string is modified, it is actually a new creation. It's basically a conversion of other objects.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What do you mean by string in java programming?

A "string" in any programming language is a line of text.


How do you convert an integer to a string?

That really depends on the programming language. In Java, it is sufficient to concatenate it with a String: int myNumber = 5; result = "" + myNumber; Other languages may require a special function, or method, to convert from integer to string.


Is special symbols are valid as a string in java?

Yes. Any special character inside the String is considered as part of the string variable and would not be treated as a special character. Ex: String str = "ABC_$4"; is a valid string declaration


What is the main feature of the programming language Java Classpath?

Java Classpath is a parameter that tells the Java Virtual Machine or the Java Compiler, where to search for user-defined classes and packages on a computer.


How can you convert byte to string in java?

To convert byte to String in java use the String(bytes, UTF-8); //example for one encoding type. You must know the special encoding that contains a variety of characters.


What Is The Java Enum And What Is It Used For?

The best way I can describe an enum is a class of Java language. Enums look like they are used in code string when writing a website.


What are some example for string formatting in Java?

There are lots of examples of string formatting in Java. It can be difficult at times. Some of these examples are, but are not limited to; align, string, format, and JAVA.


Is Java a Language or Package?

Actually, it is both. Visual Basic is a Microsoft only programming language. In order to run programs written in VB though, you may need the VB runtime library as a package DLL even if you don't use the language itself.


Why is Javascript referred to as a loosely typed language?

This is because, unlike Java, all variables are declared without a type.var a = 7; // Integervar b = "A string"; // String variableYou might notice a difference between this and Java. Java goes like this:int a = 7; // IntegerString b = "A string"; // StringIf you want more information, try the related link below.


How do you write a program using function that counts the number of vowels in a string in java language?

Use text-editor notepad++


What does it mean to have a string split in java?

To have a string split in Java means that a string array, containing substrings (can be delimited by elements of a specified string or Unicode character array), is returned.


Where can Java be used?

Java is a computer programming language, and can work across many different operating systems. Due to its versatility it is used in many software packages, e.g. games, graphic's software, etc.