Kirtipriya Jammi

Greenhorn
+ Follow
since Sep 21, 2011
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kirtipriya Jammi

Thank you Ove . !!

the foremost mistake i did was .. i put the static variable Beta b1 inside the Object Alpha.. i realized this after seeing your diagram.

Static variable cannot be an instance variable .. its a class variable .

Now i get the answer 1


12 years ago
ohh that should be "When line 15 is reached" !!
12 years ago
Hi , i have a question on garbage collection...

When line 16 is reached, how many objects will be eligible for garbage collection?


My understanding is attached in the file.
So is the answer 2 ?

12 years ago
Hi

I am preparing for SCJP 6.0

When a subclass inherits a protected member , in the subclass the member acts as
1) protected for its own subclasses ,
2) private for other classes

Is this correct ?

12 years ago