Difference between String & StringBuffer

Answer Posted / devang bhagdev

in string class that is synchronized is not allows and i stringbuffer class synchronized is allows us

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java free for businesses?

580


Can we override constructor in java?

574


What is the purpose of assert keyword used in jdk1.4.x?

558


why java does not support unsigned keyword?

4243


Which variable is the independent variable?

534






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 subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }

1347


What is exception handling in java?

573


What are the types of strings?

558


Mention some features of java?

536


What is an infinite loop?

542


What are some alternatives to inheritance?

551


What does method mean?

509


Why javac is not recognized?

516


How can you share data between two thread in Java?

522


What is use of super keyword in java?

594