Hi,
I am preparing for my
java certification exams..I had a couple of questions that I was hoping someone would help me out with. 1. Can Garbage collection be forced?
Simon Roberts book says No, Khalid Mughal says Yes.....I
would appreciate it if someone can help me find the correct
answere to this question.
2.
String is an object type & not a primitive data type - so we
can create a new String object by referencing it with the new
keyword
(ex: String s = new String("need help!")
.
So why does some of the examples simply create a new String
object w/o using the new keyword
(ex: String s = ("need help!")
------------------