Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Topic for SCJP JavaRanch Journal Article

 
Corey McGlone
Ranch Hand
Posts: 3271
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
aishwarya mathur
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3271
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aishwarya,

Check out this blog entry.
 
lali kri
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Thankyou Tom Tolman

I'm closing the topic


Have a good day
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic