kaushik vira

Ranch Hand
+ Follow
since Feb 01, 2007
Merit badge: grant badges
For More
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 kaushik vira


Above example may help to understand the answer. In your current example hash code method implementation is not strong. but equals method making sure that object equality.
Don`t worry, it`s take some time. My information also update in 2 week.
Try to run the URL using browser.... check that your URL is valid or not..

Then you get clear idea that, where is gap.
Hay amarkirt

request.getSession(true) is called ... // ontainer returns the pre-existing / current session.

HFSJ First Edition - page 233
Then I am moving with First Edition.. and as i got PDF of 2nd edition.. so. will just go though it at last..

Thanks you for all the replies.. I got directions..
Hello Nishan,

I have cleared my SCJP tomorrow, i want to check status of my Exam.. but when i give my proper details to get my account still it`s not confining me..

I guess this section is not proper to discuss this.. but can any one point me where should i post or look for more details.

Is there lot of changes.. I am new for SCWCD, you can say born today. i have read HFSJ last year. Should i go with First Edition or i should buy newer one..
Hello Ranchers,

I have just completed my SCJP, and now i want to jump in SCWCD. . I want some pointer how to start. What are the books available and from them which are Preferred.. Which are the simulator available.. and what would be best strategy to crack SCWCD with higher score..

Please Don`t send me list of 100 simulator.. I am looking for inputs that talks about the preferred material that got highlighted based on the past Ranching experience.

Thanks in Advance..
not based on my expectation.. but i did mistake. i solved all question in just 2 hours and submit paper with out review the answers...
14 years ago
Hello Raymond,

Your base assumption is wrong here.

know c2 is not null because,it is referencing to a CardBoard object.

if you look in to go method implementation.. when you call c2 become GC eligible.

4 Object is eligible for GC - 2 CardBoard and 2 Short object

Please correct me rancher if I am wrong..
Change your Car implementation with following code..

if you observe your code, you had define new property weight with hides the property member from Vehicle. so in your code there are two member having same name.

one is

weight - > Vehicle - which not cover under serialization and it`s value is assign by constructor at time of deserialization
weight - > Car - which cover under serialization so normal deserialization will work on it.

Yes.. Color.colorMap will be null..

If try to compile and run following code it will run .. because you are just declaring Enum

but when you try to use Enum.. you will get null Pointer at run time..

Same case with me.. I was using My Eclipse for faster work..
Your question is very basic.. it will be very hard to expain all the things..

better you go through K&B Chapter 6 - Topic sorting Collections , Comparable Interface and Comparator interface - page (549 -555). it will give you clear idea how flow goes..

1:- Enum must not declare in method.. - So taking out enum from main method..

2:- colorMap is static member.. so you should refer it as Color.colorMap.. and your code will compile fine also run fine....

But if you add one line in main() then below quote come in picture..

Static initialization of this enum type would throw a NullPointerException because the static variable colorMap is uninitialized when the constructors for the enum constants run. The restriction above ensures that such code won't compile