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!

Saumya Srivastava

Ranch Hand
+ Follow
since Mar 19, 2007
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 Saumya Srivastava

Hi Rohit,

I have sent you a message regarding your question. Please check your private message.

Thanks,
Saumya
11 years ago
Hi Hebert,

Yes, I'm planning for next certification. May be for SCWCD. But do not have much idea about it. Do you?

Thanks,
Saumya
11 years ago
Thanks everyone.


Hi Sumit,

I have sent you a message regarding your questions. Please check your private message.


11 years ago
Hi,

Today I cleared OCPJP exam and scored 75%. Thank you all for solving my queries. I really like JavaRanch. People are very active and you get a quick response for your doubts. And that really help others. Also want to thank Devaka Cooray, for his great software examlab. And of course Kathy Sierra and Bert Bates, for their wonderful book.

Thanks,
Saumya


11 years ago
In the below code which is from examlab. How am I getting output: 000000 ? I didn't get

Hi,

Can anyone please tell me that what is difference when we use volatile instance variables in threads and without voitaile keyword in instance variables in thread. Also how is it possible to call join() function directly without using thread object i.e when Thread t=new Thread(); we should call like this: t.join(). But in the code we can directly call join(). How will I identify that which thread will join to which if I simply call join() function.

Thanks,
Saumya
So in the code above there will be two locks : one will be this and another is System.out. Right?
How many locks can a thread acquire?

Thanks,
Saumya
Hi Javin,

Thanks for your response. As per my understanding. Below is the code I am sharing.

It asks about how many locks are obtained when Hello World is printed ?

I thought it would be 1. But the answer is 2. How come?



Thanks,
Saumya
Hi,

In some mock exams I have seen that the object is locked on System.out. Is it possible? And what kind of lock it will be? Whether each object of the class will have its own lock on it or it will be at class level that is only one object can access it at a time.

Thanks,
Saumya

Ankit Garg wrote:1. You should remember there is no implicit downcasting in a method call, so if you have a code like this, it will not compile



Hi Ankit,

Thanks for your response. I got your second point but not the 1st point. What do you mean by saying implicit downcasting. Also, the line of code you highlighted is running.

Thanks,
Saumya
Hi,

I was going through this question. And came across some doubts. If somebody can tell me that if there are multiple overloaded functions with different Datatypes then what is the trick to identify that which datatype will be selected? and if it has same datatype of primitive as well as wrapper then which one the compiler will choose to execute it?
The below code is from Certpal. I have modified it a bit.



Thanks in advance,
Saumya
Hi,

Congratulations !! for your achivement.. Could you please tell me ..What all mocks exams you did? And how much was your range of score? Is taking exam on ExamLab and CertPal is enough? Or any other mock test should also be done..? I am left with few days for my exam. It would be great help if you can share with me.

Thanks,
Saumya
11 years ago
It's a jar file containing the mock exams for preparing SCJP not sure if it is for SCJP 6 or not. It shows SCJP 5/6.
Hi,

What is latest version of Inquisition? is it 1.4 version? for SCJP 6

Thanks,
Saumya