This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!

Sandhya Harish

+ Follow
since Feb 15, 2002
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 Sandhya Harish

Thanks for the feedback. I guess i shall wait till the head first book is available.
I am currently preparing for the SCWCD exam and would appreciate if some one could tell me the books to prepare for the exam. The one i have right now is Deshmukh Malavia.
Hello Michael,

Sorry to hear you feel that way. But I did clear the exam with the book I won. Anyways, good luck in all you future endeavours

17 years ago
Thanks a lot Nicholas and Sairam.
I am now wondering whether to give 1.3 or the beta version of 1.4. i guess there are no books available for 1.4 at this point.
Planning to take the SCWCD exam next after clearing the SCJP 1.4. Would someone help me with a list of books for the certification?
Congratulations, Fei!!
17 years ago
I finally got my certification done. Although my percentage is really bad!!
I got a mere 60%, but what I learnt from this certification was a whole lot more. Thanks to the certification forum and the best books: Kathy-Bates and Mughal book.
Certainly, practising coding more would have helped me go the extra mile.
Anyway, here are a few things that helped me
- All of Dan's comprehensive exams,
- Dan's single topic's helped me strengthen the basics
- Marcus Greene's exams
- Books: Mughal and Kathy-Bates
- Lots and lots of coding( which i din't do!! )

Hope future test takers specially take note of the last bullet because it helps you understand the language a whole lot better.
17 years ago
Thanks, Rumpa.
I guess that was the nagging doubt I had, as to which object's run() was being invoked.
Also I understand that a new thread is started only with the start() method. therefore the stmt in main starts a thread "T1", which is printed because the run() in class A is invoked??
After that, in class B:
new A().run(), does not start a new thread, but only invokes the method run(), Thread.currentThread returns "T1"
new Thread(new A(),"T2").run();, once again calls the run() method in class A without creating a new thread and Thread.currentThread returns "T1"

new Thread(new A(),"T3").start();, here the start() invokes the run() in class A starting a new thread "T3" which gets printed.
Am i right? or is my logic in understanding this totally wrong? please help!!

Ans is T1T1T3
In the main method, new Thread(new B(),"T1").start(); how does it know which run() to invoke?? that of class A or that of class B?
Also how did the control go to new Thread(new A(),"T3").start();
Edited by Corey McGlone: Added CODE Tags
[ March 17, 2004: Message edited by: Corey McGlone ]
Thank you. I have got the concept right this time
thank you.
so setting the array reference itself to null in the invoked method has no effect in the result compared to setting the elements of the array reference to some value in the invoked method. is that correct?
Here in class J when the method m1 is called with array reference a1, is'nt the change reflected in the main method? if so, then all the objects created would be eligible for GC
but the answer says that no object will be garbage collected as only the variable a1 in the methos m1 is set to null and the change is not going to affect the a1 in the main method.
my question is when passing an array reference var to a method, is the change in that method reflected ??
class I {
private String name;
public String toString() {return name;}
public I(String s) {name = s;}
class J {
private static void m1(I[] a1) {a1 = null;}
public static void main (String[] args) {
I[] a1 = new I[3]; // 1
a1[0] = new I("A"); // 2
a1[1] = new I("B"); // 3
a1[2] = new I("C"); // 4
for (int i = 0; i < a1.length; i++) {
hi deepa,
hashcodes are basically "bucket numbers" or rather a storage area with a unique id where you would store elements that have the same hashcode
eg: to compute the hashcode of Alex: A(1) + l(12) + e(5) + x(24) = 42. therefore hashcode for Alex is 42
lly, Amy has a hashcode: A(1) + m(13) + y(25)=39, hashcode for Amy is 39
also May has the same hashcode: M(13) + a(1) + y(25)=39
This is just an example by taking the position of an alphabet, adding them up and coming up with a unique hashcode that stores the values of elements(which have the same hashcode) so that it is easier to find them later.
I am not sure whether you wanted the concept of hashcode or you want it for programming.
The 2 books i am referring to now are Kathy Bates and Mughal and Rasmussen. They are really good and shed more light on this topic.
Hope that helped.