Originally posted by jas oberai:
Hi Friends,
I've this doubt,can someone tell me how many objects are created by this code??According to me:
9 Obejects-->"Hello","World","Hi World","Do Test","a","b","c",Vector v","x"
If I am correct,can someone tell me why "StringBuffer Object x" is not available for garbage collection ar #11??
Thanks in advance.
Jas,
aren't a,b,c and x variables ? You cannot count them among objects created.