Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

aishwarya mathur

+ Follow
since Sep 03, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by aishwarya mathur

Can anyone explain me the below code from Khalid's on pgno.268
I think I'am going wrong somewhere,u may find it simple, here in the below code, as method <amethod> is non-static ,is it ok if we try to access variable j which is static.

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.
Please refer to the site below

Hi All,
Excuse me if I'am posting this information at wrong place.But this question is for people who have taken the Whizlabs simulator of 59.67$.

I just wanted to know that after buying this simulator should we wait for the CD to be sent,or we can directly sit and access the questions online.
I want to buy this simulator but I don't want to wait for 3 to 7 days for the CD. Please clear my doubt.

How about the package of 29.99$ final preparation package by ,they also send the CD and ask us to wait for the CD.
Hi All,

Here "sunil" get printed.Can explain why?
Hi all,

This below code is from Dan's mock,anonymous class section.

Compile-time errors are generated at which lines?

The answer is 3 and 5.The explaination given by dan for this is :

Local method variables and method parameters are stored on the stack and go out of scope after the method is exited. Although a local reference variable is stored on the stack, the referenced object is stored on the heap; so the object can continue to exist long after the method runs to completion. An object that is instantiated within a method or block is not permitted to refer to a variable that is declared within the method or block unless the variable is declared final and "the variable declaration precedes the creation of the object".

Please find the double quoted sentence in the above para,Can anyone modify the code and show how the statement on line 6 can be coded so that it precedes the creation of object.
Hi All,

This below code is from Khalid's (Page No 311).I'am trying to understand what are the accessible declarations in anonymous class which extends Base.So I have added some printout statements to check out what variables are accessed and how.But somehow, I'am not able to compile the program.Can you please correct the code.

It outputs 22 ,why not 23
Hi all,

I'am sorry if this question was posted before,,,but I really need help
Please explain why is this declaration for float invalid.

float f = 314e7;

Can anyone provide the answers for Barry Boones' SCJP Mock exam 1 ,2 and 3 papers please.

That would be helpful.

In the above example "String Version" is the output,can anyone explain please
Thanks Barry for responding,
What is the result of attempting to compile and run the program? is the question to the above codes.

I feel so helpless when I get my answers wrong,the main reason is I have wrong assumptions about things.The wrapper class codes what I provided are getting me messed up related to the primitive types and their conversions.

Is there any rule to be followed to check errors in these types of codes.
Hi , Below are the code questions from Dan's Mock... Can anyone please provide a general rule need to be followed/checked before answering these questions.

Hi All,
This below code is from K.Mughals on page 384

Can anyone please explain what is the flow of execution here in this code.
I have tried many times to understand,but I'am not getting the correct results.

Please help.