P Teng

Greenhorn
+ Follow
since Nov 20, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by P Teng

Hi, can some one pl confirm how is the marking done for questions with more than one correct answer (checkbox type) in OCJA. If one chooses two options out of which only one is correct then does the candidate score any marks (50% in this case for the question).
14 years ago
Excellent
That explains it.
Perhaps thats why it does not like b = b * 2 but likes the former b *= 2

Thanks Matthew.
14 years ago
Hello,

Thank you very much for your reply.
but why does this not apply to b *= 1 as that too is a mathematical action.

14 years ago
Hi


why does line 1 not give the same error as line 2 (possible loss of precision). Why is the 2 in line 1 not treated as an integer.
14 years ago
I had already posted my queries to [email protected]. I have done that again today.
14 years ago
Yes, I too agree with the observation regarding there support. I too posted a question to them about 2-3 weeks back and have still to hear from any one (at least I did not get the mail box full !). I have had doubts about a couple of question and am awaiting a reply from them.
14 years ago
Thanks Rob, that helps.

Meanwhile I have also found that the PriorityQueue is NOT thread safe. One can use PriorityBlockingQueue instead.

The earlier example if reworked as below works

15 years ago
Hi,
When I run the below code I get a run time exception. Could you please see what could be wrong. Is this not correct use of poll() ? .

There is a similar example in Book for exam 310-065, generics and collections, Chapter 7





error that I get is

15 years ago
Can some one please explain the output caused by line 1



output is below. What causes 559998 to appear after the . instead of just 56
15 years ago
Hi , a quick one please

The following code does not compile, complaining that it cannot find symbol : variable y.
Does this mean that variables in static or not static code blocks are limited in scope only to that block only if they have been declared there ?

15 years ago
the answer is A because when aa=null eecutes, there is no outside world referene that can help reach to objets of class A or B. Hence all objects are eligible for GC
Thanks guys. This helps.
15 years ago
String are supposed to be immutable, how ever it seems from below that even Integer could be immutable as well, can some one please explain that when we assign an Integer reference to another the same String immutable behaviour happens. Even though Integer j is assigned a reference to Integer i, and when I change i, j remains unaffected. Can some one please explain



output is
15 years ago
Thanks guys, it must be one of the PATH settings or the version. The same code works at home. Thanks Ritchi ! Hope to hear/tell/learn lot more in the forum in the future.
15 years ago