Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!

Arhaan Singhania

Ranch Hand
+ Follow
since Mar 28, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
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 Arhaan Singhania

Dear All,

I was just wondering since Prometric got discontinued as a testing center. What advantage we get out of Pearson VUE?
Any ideas. I am just curious to know.

Thanks,
Arhaan
Dear Mathew,

Thanks a ton. It will help me remember to take MONTH as an offset. really helpful. Thanks a ton.

Arhaan
Dear Henry/Mathew,

That was very helpful. I should first check the documentation, my fault .

Mathews, it was confusing definitely, just wondering, why would they keep it to zero

Thanks,
Arhaan
Hi,
I took this example from Chapter 6 K&B. Here is the code



When i call it, it shows the date is 09 September but when i try to retrieve the month in line one, it returns 8. It should return 9.
When i add another month in line 2, it turns the month to October. When i retrieve the month, it gives back value 9. Actually October
is the 10th month. Why is that?

Arhaan
Hello Stephan,
It clears my concept as well.
Arhaan
Dear Stephan,

It means that String.intern() gets called somewhere or what. Can you elaborate your concept?

Arhaan
Hi,
Go through SCJPFAQ, it would help you regarding the topics and the course outline.
Hope this helps,
Arhaan
Hello,
Thanks. It helps a lot. So you mean to say, at this point, there will be two literala abc in the String pool constant?
Arhaan
Hi,
I am on chapter-6 pg.434. Here is a way to create strings.



In K_&B, it is written that as we have used new keyword, Java will create a new String object in normal(nonpool) memory and s will
s will refer to it. In addition, literal 'abc' will be placed in the pool. I have a question, as two objects are created, but both of them refer
to same literal abc. Is that correct?

Arhaan
Dear Helen,
Congrats. Hang on here till i also complete my OCJP
Arhaan
7 years ago
Dear Seetha,

Thanks for your wonderful reply. It is making the picture little clear in my mind. I was trying to map the type parameter
with the javadoc. Can we confirm somehow from javadoc that basically a collection can take another collection as a type parameter.
Secondly if we see that in the type parameter we are trying to instantiate an interface. e.g



On R.H.S, if we see that List is an interface, then how it can be permitted. Example can be understood but still a little confused.
Any more help would be helpful.

Thanks,
Arhaan
Hi,

I have a confusion in Generics syntax. This is taken from K&B chapter 7 and self-test exercise 1



Why the type parameter is given as List<Integer> and such kind of declaration can be helpful in what kind of use-cases?
Thanks,
Arhaan
Dear Helen,

What is the concept of 2-D entry table. Can you explain a little. Rest of the explanation is pretty clear and it makes sense to me.
Thanks a ton.

Thanks,
Arhaan
Hi,
I know how exactly equals() and hashCode() works, what is their contract but i am eager to know how the hashing works
behind the scene. When does the JVM uses the hashCode to land the objects into the correct bucket. Any information would
be helpful.
Arhaan