suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?
Answer Posted / ravi jain
2 new string objects will be created in String pool area in JVM.
String are immutable that why they are stores in
different area in JVM
as in case of final variables.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is numel matlab?
What is class??
Can we restart a thread already started in java?
What Is Query Throttling in java?
What is a dot notation?
Can abstract class have private constructor?
Are private methods final?
What are operators and its types?
What is difference between identifier and variable?
Convert Binary tree to linked list.
Explain with example the concept of constant variable in java.
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
Explain reverse a linked list recursive java solution?
How many types of design patterns are there?
Mention a package that is used for linked list class in java.