Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

sweety sinha

Ranch Hand
+ Follow
since Jul 07, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 sweety sinha

thanks guys.

What should I do next?
12 years ago
I cleared my SCJP5.0 with 88%.
Thanks each & everyone who helped me in my preparations & especially Deevaka Coorey for the examlab.

Thanks
Sweety
12 years ago
thanks Ankit & Joshua Ebarvia for quick response


when this code runs print
ram2=5 ram=4
and size 2 but here no hashCode is used so it should print size 5

please help

thanks in advance


if line 1 is sifted to new position then it gives compilation error. But when it is at its original position why it is not giving error?

thanks in advance
i didn't get it. please explain.

thanks in advance
this question is from examlab

why it is giving compilation fail. please give me a detail explanation

thanks in advance
thanks both of you for the answer.
now i got it


when this code is run it gives answer as
thread main name :main
thread name :Thread-0
thread name :Thread-0


When i put 2 i place of 1 then the answer becomes

thread main name :main
thread name :Thread-1
thread name :Thread-1

So my question is why it is not showing both thread name i.e thread name :Thread-0 & thread name :Thread-1
i have also made run method synchronized.

thanks in advance


why this is giving true when it should give false as answer.
thanks guys for quick response
it SCJP book by K Siera & Berts Bates it is written that "hash map can have one null key & multiple null values" null values is alright but how can it has null key. then can values be retrieved from it.

please explain
Hello Ankit!!

Many Many Congrats & Good Wishes!!
12 years ago
still not very much clear
why length is 7 why not 11

thanks in advance
class H
{
public static void main(String []args)
{
String s1 = "this is token";
String []token = s1.split("\\w");
System.out.println(token.length);
for(String s : token)
System.out.println(s);

}
}
why this is printing length:7
and
nothing when System.out.println(s); is reached

thanks in advance