Tim Holloway wrote:
..
In older JVMs there were performance advantages to declaring a class final. They supposedly no longer apply, but some classes are final for other reasons.
Originally posted by Ashok Pradhan:
I want to know when we apply Thread.yield() on a running thread ,what actually happen.it goes to runnable state and come back again to running state or goes to runnable and never come back or nothing happens.please clarify my confusion.
Originally posted by Uttara Rishi:
Hi Ranchers,
The above code compiles while the following one doesnt.
I am getting a compiler error on line 1. Can somebody please explain?
Thanks in advance.
Uttara Rishi.
Originally posted by Rahul Singhai:
Guys,
What about 5. private transient..
it also seems to be a possible correct answer.
(Choose the shortest possible answer.)
NOTE: The functionality of this interface is duplicated by the Iterator interface. In addition, Iterator adds an optional remove operation, and has shorter method names. New implementations should consider using Iterator in preference to Enumeration.
Originally posted by Nabila Mohammad:
Can some tell me why c2 is not null.
Isnt cb pointing to c2 on the heap.So if cb is null wouldnt that mean, c2 is null as well.
Can some one make this more clear.