ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
when i write 
string s1="java";
in one program(application) and 
string s2="java";
in another application
on the same jvm will both objects s2,s2 will refer to same
memory location where "java" is stored
in string pool.
 Question Submitted By :: Vinayakkatkar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.
Answer
# 1
Yes,They will refer to same memory location..
 
Is This Answer Correct ?    2 Yes 1 No
Tj
 
  Re: when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.
Answer
# 2
String s1="java";
String s2="java";
System.out.println(s1.equals(s2)); -->true
System.out.println(s1==s2); --->true
 
Is This Answer Correct ?    4 Yes 1 No
Ss
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Which method is used to find that the object is exited or not?  1
what is the use of finalize()Method please explain with an example  2
what is the Diff. between Access Specifiers and Access Modifiers? Wipro15
What is the exact difference in between Unicast and Multicast object ? Accenture1
What classes of exceptions, caught by a catch clause?  1
When you Click a Button, What event will be fired?  2
can anyone explain me the concept of autoboxing?  3
What is lazy activation? CMC1
can we add two numbers without using arthematic operators? if possible how?  2
What is casting ?  2
What is protected and friendly?  1
How can you sort dates? TCS1
In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not???? Accenture8
How Applets & Servlets will communicate with each other?  2
what is a thread? IBM10
what is Inheritense Tech-Mahindra1
Where the CardLayout is used?  1
What are the traverses in Binary Tree? Adobe2
wht is customised exception? Prudential1
what is features of jdk 1.5? TCS2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com