|
![]() |
Mark Herschberg, author of The Career Toolkit
https://www.thecareertoolkitbook.com/
Originally posted by mohit joshi:
Hello Mark,
Interesting post. GC is a complicated and interesting subject of study in itself. Do you mind sharing though, the percentage of candidates who have sound knowledge of GC, say who reach level 4 and 5 of your list of points..
Regards
Mohit Joshi
Mark Herschberg, author of The Career Toolkit
https://www.thecareertoolkitbook.com/
Originally posted by Buzz Andersen:
- You have a gold bar, and you need to pay an employee 1/7 of this bar each day for a week. You can only cut it twice. How do you accomplish this? [Amazon.com]
Originally posted by Buzz Andersen:
[Amazon.com]
- You have an array 0-99 which contains a sequence of numbers 0-100. Obviously one number is missing out of the sequence. What is the most efficient way to determine which number is missing? [National Instruments]
Mark Herschberg, author of The Career Toolkit
https://www.thecareertoolkitbook.com/
Originally posted by karthik Guru:
Java does not use Reference counting algorithm i feel.
because then it means we w'd've a definitive garbage collection which is'nt the case i guess.
We just are'nt sure when finalize gets called. Had it been reference counting then we can be sure of finalize getting called ( i mean when).
Originally posted by Mark Herschberg:
Add 'em all up. If the sum is S and the missing number is X, then 5050 - S = X.
Alternatively, I would say write a trivial hash algorithm, and put all numbers into a hash table, such that number X, maps to bucket X.
I'll skip the fibonacci, which everyone probably knows.
Here's one my friend likes to ask. You have two vials of pills of type A and type B.
Thanks,<br />Sridhar.
Please ignore post, I have no idea what I am talking about.
Please ignore post, I have no idea what I am talking about.
-Shashank<BR>MS(CS),BS(CS),SCJP2
-Shashank<BR>MS(CS),BS(CS),SCJP2
-Shashank<BR>MS(CS),BS(CS),SCJP2
Originally posted by John Dale:
You can swap integers a and b without using any other variables:
<code>
b = a ^ b;
a = a ^ b;
b = a ^ b;
</code>
-Shashank<BR>MS(CS),BS(CS),SCJP2
Originally posted by John Dale:
You can swap integers a and b without using any other variables:
<code>
b = a ^ b;
a = a ^ b;
b = a ^ b;
</code>
Please ignore post, I have no idea what I am talking about.
Originally posted by Buzz Andersen:
Incidentally, in response to Mark's original GC question--would I be too much of a smart ass interviewee if I responded that the Java spec makes no specific statements about how the garbage collection algorithm should work and that it is left entirely up to the VM implementer ;)? At least that's what I learned when I studied for my Java cert...
Buzz Andersen
- Sun Certified Java Programmer for the Java 2 Platform
Mark Herschberg, author of The Career Toolkit
https://www.thecareertoolkitbook.com/
Originally posted by Mark Herschberg:
I got answers like that a couple times. It raised a yellow flag, i.e. I'm about to pay attention to whether or not your trying to dodge the question. The fact that it isn't specified is the point of the question. The average programmer will say "gee, not specified, so what do I care, it's taken care of for me." The good programmer says, "I need to look under the hood to understand what's going on and get really good performence."
--Mark
-Shashank<BR>MS(CS),BS(CS),SCJP2
John Coxey
Evansville, Indiana, USA
Originally posted by John Coxey:
...
In this manner - I can judge Mark as much as he is judging me. Meaning, is this a person I want to work for? ...
-Shashank<BR>MS(CS),BS(CS),SCJP2
Originally posted by shashank bapat:
John,
Did u try searching for job recently?
Originally posted by Buzz Andersen:
... local consulting firm (which shall remain nameless)....
Buzz Andersen
- Sun Certified Java Programmer
-Shashank<BR>MS(CS),BS(CS),SCJP2
Originally posted by shashank bapat:
At VSP in Sacramento one guy asked to start an interview if Loyola University of Chicago, where I did my MS is accredited.
Originally posted by Buzz Andersen:
Sorry, I was just reading back over your post and I couldn't get over this! Is Loyola University accredited? What a clown!
Congrats on getting your masters, BTW. I must admit that as this economy goes from bad to worse, that's what I'm seriously considering doing as well. It's funny--when I was an undergrad, I couldn't wait to get out. Now, I want back in!
-Shashank<BR>MS(CS),BS(CS),SCJP2
Later they found someone with 6 years of java experience for the position. Do u believe that?? Well I do because in last one month many of my close friends gained additional 3 years experience. So it is possible.
Originally posted by John Coxey:
In this manner - I can judge Mark as much as he is judging me. Meaning, is this a person I want to work for?
...
What I hate is an interviewer who can't be flexible enough to adjust to the situation as the interview progresses.
-------
Given our "discussion" rather than "interrogation" - I hope to give Mark a better picture of what level I am comming in at and also convey a sense of "leadership" and a "take charge" attitude - along with a demonstration of my communication skills.
Mark Herschberg, author of The Career Toolkit
https://www.thecareertoolkitbook.com/
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |