aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Topic for SCJP JavaRanch Journal Article 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 "Topic for SCJP JavaRanch Journal Article" Watch "Topic for SCJP JavaRanch Journal Article" New topic
Author

Topic for SCJP JavaRanch Journal Article

Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Hey folks,

For any of you that have been hangin' round these parts for a while, you might have heard of the JavaRanch Journal. A few of you cowpokes might have even see my column which has been running for the last few months called the "SCJP Tip Line." The column is based on my blog by the same name. If you haven't seen the articles, here are links to the couple articles (you can find more from the JavaRanch Journal homepage above):

September 2004 - Strings, Literally
August 2004 - Looking "Under the Hood" with javap

I often pop in here to see if there are any specific topics people would like to see covered and, as October is coming up soon, it's time to do that again. (In case you're wondering, this thread started here - I just thought I'd start a new one to cut down on clutter.)

So, there ya have it, folks. Your free opportunity to ask for your very own personalized SCJP article. What's on your mind? What don't you understand? What do you need more detail about? Let me know what you'd like to hear about and I'll see what I can do.

Be sure to check out my blog and the JavaRanch Journal to see what topics have already been covered.

Later, y'all,
Corey


SCJP Tipline, etc.
aishwarya mathur
Greenhorn

Joined: Sep 03, 2004
Posts: 22
hi corey,

I keenly read all your articles.You explain things to the point.
I would suggest Garbage collection would be good. It's the most confusing,this would help to be SCJP candidates also.
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Aishwarya,

Check out this blog entry.
lali kri
Greenhorn

Joined: Apr 06, 2004
Posts: 14
Can u add ur explanation about threads, synchronization etc.. that wud be really helpful for the SCJP exam takers i hope ...
janne s
Ranch Hand

Joined: Sep 21, 2004
Posts: 81
Hi!


can anyone explain me why incremented i value is not printed where as array value is incremented in the following program

public class TestClass
{
public static void main(String args[ ] )
{
int i = 1;
int[] iArr = {1};

incr(i) ;
incr(iArr) ;

System.out.println( "i = " + i + " iArr[0] = " + iArr [ 0 ] ) ;
}
public static void incr(int n ) { n++ ; }
public static void incr(int[ ] n ) { n [ 0 ]++ ; }
}

o/p:

i=1 iArr[0]=2



Thank you
Tom Tolman
Ranch Hand

Joined: Sep 02, 2004
Posts: 83
I think it is because the n++ is a copy of the original value, while n[0]++ IS the actual value.

Java passes all things by value- the integer and the reference. The reference, when dereferenced, points to the original object which is incremented.
janne s
Ranch Hand

Joined: Sep 21, 2004
Posts: 81
Hi!

Thankyou Tom Tolman

I'm closing the topic


Have a good day
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Topic for SCJP JavaRanch Journal Article