suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?

Answer Posted / kvk

two object will be saved in string constant pool

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the arraylist in java?

530


What is nested loop? What is dangling else condition in it?

574


How to convert string to char and vice versa?

515


What is a double?

591


What is a conditional equation?

561






What are variable arguments or varargs?

569


What are the common uses of "this" keyword in java ?

569


Explain about abstract classes in java?

587


What is the purpose class.forname method?

560


What is java developer skills?

516


make a method which any number and any type of argument and print sum of that arguments.....

1382


What are the two basic ways in which classes that can be run as threads may be defined?

552


What is a dynamic array in java?

565


What are the approaches that you will follow for making a program very efficient?

650


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". } } }

1349