Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Kelly Walker

Greenhorn
+ Follow
since Jun 08, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kelly Walker

Does anyone have any suggestions for study materials regarding objective 6.1 ( security issues ) as the topic pertains to servlets? Thanks...
How important is studying java.awt.Graphics for the exam? I'm familiar with the concepts involved, but haven't studied it in detail. The exam objectives don't explicitly mention it - was it included in an earlier version of the exam? Thanks...
kelly
How could you access the instance variable i in the code below? I'm a little confused about why you could have a non-static member of a static inner class. I tried creating an instance of TopLevelClass and then referring to variable i, but I couldn't get that to work. Thanks!
public class TopLevelClass
{
static class NestedTopLevelClass
{
int i = 50;
}
public static void main(String[] arrgghh)
{
TopLevelClass tlc = new TopLevelClass();
// tlc.NestedInnerClass.i ???
}
}
Tod, yes that was my question. I also thought it was really strange when I saw it - I never would have guessed that Java would behave this way. I just assumed that the assignment would take place before x is incremented. But I guess that since the '++' operator has a higher precedence over assignment, then I suppose that it makes sense ( but it still seems a bit counter-intuitive to me). Thanks for both of your replies.
19 years ago
I've got a question about the post-increment operator. In the code below, I would have assumed that the final value of x would be 7, but it is 6. In statement 'x = x++;', why wouldn't x have been incremented after its current value was assigned to it? I'm probably overlooking something obvious, I know. Thanks...
( This issue came up when taking Marcus Green's 3rd SCJP mock exam - question 54 ).
int x = 5, y = 5;
y = x++;
System.out.println("x = " + x);
System.out.println("y = " + y);
x = x++;
System.out.println("x = " + x);
19 years ago
I'm considering taking the SCJP exam within the next week or two, and now I read that Sun is considering modifing the exam somewhat. Does anyone think that it would be worth waiting to see if Sun decides to move to this "adaptive" format for the exam instead of taking it this month? Thanks...
http://certcities.com/editorial/news/story.asp?EditorialsID=117