abhishek

Greenhorn
+ Follow
since Dec 16, 2000
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 abhishek

The output from the program is
2
5
8
The 5 ,8 is understandable; could somebody explain why we're getting 2 ??
Hey Shalini,
don't u realise that laws apart, there wouldn't much fun in preparing for something that, I quote "idiots and/or slackers who don't have the talent or don't want to spend the time studying" if questions were available for all to download.
Thanks everybody for the answers.
abhishek p.
what will be the answer to the following question?
Given:
public class X {
public void m(Object x) {
x = new Integer(99);
Integer y = (Integer)x;
y = null;
System.out.println("x is" + x);
}
}
When is the Integer object, created in line 3, eligible for garbage collection?
never
just after line 4
just after line 5
just after line 6 (that is, as the method returns)
when the calling method sets the argument it passed into this method to null
First of all congrats for sailing througt the exam.
You talked of downloading resources from the web. So did you try the electronic version of "Thinking in Java", if yes then how did you find it specifically with respect to the SCJP exam?
23 years ago