Ravi Arikere

Greenhorn
+ Follow
since Jun 25, 2003
Merit badge: grant badges
For More
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 Ravi Arikere

Congratulations....
I have a few questions..
1. How long did you take to prepare for the exam.
2. Is it possible to list the books other than the certification ones that you found useful.
Thanks in advance.
20 years ago
Hi,
Anybody planning to take Certification in about 2 to 2-1/2 months. We could study together. Would help us keep ourselves accountable and motivated.
Thanks
20 years ago
Another Way of writing your program is
class Test
{
public static void main(String args[])
{
int i = 1;
//i = i++; This line is commented.

System.out.println(i++);
}
}
Since i++ is what is called as a "post- increment" operator, the compiler allows the operation following the increment statement to be performed and then does the incrementing. So in your case, first the present value of "i" which is 1 is displayed and then the increment operation is done.
Hope this helps.
20 years ago