When you say String is immutable, what do you mean by that?
Say I have String s = "Ness"
s= s+"Technologies";
What will happen? If the value gets appended, then what is
the meaning of immutable here?
Answer Posted / harmetkrishanan
every time a new String object gets created in this case.
| Is This Answer Correct ? | 24 Yes | 5 No |
Post New Answer View All Answers
What is split return?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
Is a case study a method or methodology?
What is a boolean in java?
What are the topics in core java?
What is a bufferedreader?
What is boolean keyword in java?
What is an infinite loop?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
What is static method with example?
What is arraylist class in java?
What's a method in programming?
What do you know about the garbate collector?
What are different types of control structures?
What is one third plus one third as a fraction?