I thought the first print statement would print "newString" as String is an object, and when we pass objects between methods, changing state of the object in any method reflects across the methods. Please correct my understanding
Hi Friends,
I have a DAO class which is spring managed. I need to decide whether to use static/non-static methods. I believe using non-static methods will force callers of the DAO to wait until it is fully initialised, and is the better option, since you have a fully formed class. please let me know what are the factors that I must consider before deciding?
Hi Jeff/Rob,
Thanks for the help. I have another query.
When I only need a shallow copy of the object, it is fair enough to use the clone functionality
provided by java.lang.Object, and not override the clone() method myself. Is this correct?