Michael Dixon wrote:I have been doing the courses, for 2 weeks now. They are very good. I have no regrets. www.jpassion.com is an alternative that is worth considering.
Jeff Verdegan wrote:
Your other choice is to tell them to take a hike.
What happens if the package xcom are removed from the A.java and B.java? The fully qualified name of them are now A and B.
ayush raj wrote:@C Halbe : And what about equals method? How does it manipulate the strings equality? For the case 1 : does any object exist on the heap ?
ayush raj wrote:Totally confused relating to String constant pool and the heap .
ayush raj wrote:How many objects are created if i write the following codes in java 1.6 :
String str1="abc";// case 1
String str2=new String("abc");//case 2
Does str1 will also be stored in the some string literal pool or only str2 would be stored in the pool ?
ayush raj wrote:But then how could i know if two objects have been created or only one object is created ?