aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Few queries on Chapter 3 of SCJP 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Few queries on Chapter 3 of SCJP 5" Watch "Few queries on Chapter 3 of SCJP 5" New topic
Author

Few queries on Chapter 3 of SCJP 5

deepu verma
Greenhorn

Joined: Sep 19, 2006
Posts: 1
Following are my queries with reference to Chapter 3 of SCJP 5

1. In the self test of Chapter 3 Question no 2
Should the answer not be 4 objects, since the line Cardboard c3 = c1.go(c2) would also set the c3 object to null.

2. Should the function rt.freeMemory() be rt.getFreeMemory()

Thanks
Deepak

On Page 234 of the book there is a typo System.out.println("y=" + i); should be System.out.println("y=" + y);
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Hi. Have a look at the Errata for this book here...

http://www.coderanch.com/t/257589/java-programmer-SCJP/certification/SCJP-Errata-Updated


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Jacky Zhang
Greenhorn

Joined: Sep 17, 2006
Posts: 18
Originally posted by deepu verma:

1. In the self test of Chapter 3 Question no 2
Should the answer not be 4 objects, since the line Cardboard c3 = c1.go(c2) would also set the c3 object to null.


no, because c3 is just a reference variable in the stack, no object has ever been created for it to point to in the heap, hence nothing to be GCed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Few queries on Chapter 3 of SCJP 5