Nancy Gu

Greenhorn
+ Follow
since Dec 31, 2000
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nancy Gu

I want to clone a hashtable. But I can not get a copy of key after I clone it. How can I get the copy of key with a simple way? Can any body give me suggestion?
thanks
18 years ago
I want to clone a hashtable. But I can not get a copy of key after I clone it. How can I get the copy of key with a simple way? Can any body give me suggestion?
thanks
18 years ago
Hello,
How about the IT job market now? I got a master degree in Computer Science last December. I am Sun Certified Programmer.
By now I still have not got a job offer? I have sent hundreds of resume, but I got very little reply. If any body can give me some advices I will appreciate it.
Thanks
Nancy
19 years ago
Hello,
I am sorry I post a different topic here.
I access the internet through telephone line. When I access the internet, my telephone is busy. I heard there is a software which can remind you that there is call coming in while you are on line. Does any body know what is the name of the software and where I can find it?
Thanks.
Nancy
19 years ago
Hello, everybody:
What is the eveluating order and results for these questions?
Pls expain it for me. Thanks.

----------------------------------------
int n = 7;
n<<=3;<br /> n = n & n + 1 | n + 2 ^ n + 3;<br /> n >>= 2;
System.out.println(n);
----------------------------------------
8 | 9 & 10 ^ 11
----------------------------------------
boolean b1=b2=b3=b4=true
b1 | b2 & b3 ^ b4
----------------------------------------
boolean b1=b2=b3=b4=true
b4 = b4 | b1 & b2;
b3 = b3 & b1 | b2;
35. For the following code:
class Super
{ int index = 5;
public void printVal()
{ System.out.println( "Super" );
}
}
class Sub extends Super
{ int index = 2;
public void printVal()
{ System.out.println( "Sub" );
}
}
public class Runner
{ public static void main( String argv[] )
{ Super sup = new Sub();
System.out.print( sup.index + "," );
sup.printVal();
}
}
What will be printed to standard output?
a) The code will not compile.
b) The code compiles and "5, Super" is printed to standard output.
c) The code compiles and "5, Sub" is printed to standard output.
d) The code compiles and "2, Super" is printed to standard output.
e) The code compiles and "2, Sub" is printed to standard output.
f) The code compiles, but throws an exception.

Why the correct answer is c? It seems the correct answer should be e. Can anyone give me some help?