Deepak Jindal

Ranch Hand
+ Follow
since Nov 16, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Deepak Jindal

Not till today. I dont know about tomorrow.
I cleared it today with 80% marks.
Hi Venkat,

Originally posted by Venkat Ramanan:
Hi!!
" The finalize( ) method can make an object that has been eligible for garbage collection become accessible again from the active part of the program. "
rgds!!


finalize() method can make an object accessible again that has been eligible for garbage collection - by making a reference of "this" variable to a static variable. Since finalize() method is called just once during the life time of a object. So, the next time the object becomes eligible for garbage collection, it does not make a call to finalize() method [otherwise it will again create the static reference] and gets collected by garbage collector.
The answer is d) to the other question. Garbage collector is a daemon thread (low priority thread) which runs in the background when the system resources are free.
[This message has been edited by Deepak Jindal (edited February 19, 2001).]
I too think the answer is 4.
I remember I have seen the similar post before also and encountered the same question in mock exams also. The answer is 4 according to them.
Daemon Threads are the low priority threads which runs in the background. A thread can be made by calling the method
setDaemon(boolean true)
Daemon threads runs, whenever system give resources to it. But there is no fixed schedule or rule set by the scheduler for it. eg.-Garbage collector is a daemon thread.
HTH

Originally posted by Manfred Leonhardt:
Hi,
According to the JVM specifications the null literal can be converted to any reference type. Therefore, in your example we can assume that the null reference type will be converted into the lowest level class found in your method parameters. Since the lowest level class found in your method parameters is String (subclass of Object, therefore lower level), it will call that method. It is interesting to note that any other method that has only one non-primitive parameter will cause a compiler error. For example:
method(String s) and
method(StringBuffer sb)
or
method( Integer i) and
method( Double d)
Regards,
Manfred.


Hi Manfred,
Will you explain me in detail "It is interesting to note that any other method that has only one non-primitive parameter will cause a compiler error. "
I am a bit confused.
It took me less than 2 hours.
The only short cut is you can skip the intermediate bits.
Like in this case:
int i = oxFFFFFFF1;
i = 1111 FFFFFF 0001
i >> 1
new i = 1111 FFFFFF 1000
i = oxFFFFFFF8;
I am confused here.
I have just read in some other post that anilbachi mock exams are based on the latest java2 exam objectives. But here you have asking regarding the question on javadoc utility which is not there in SCJP2 objectives. Would somebody (who has taken the SCJP2 exam) make it clear, if "javadoc" utility there for the exam or if you have received any questions on that?
[This message has been edited by Deepak Jindal (edited February 12, 2001).]
[This message has been edited by Deepak Jindal (edited February 12, 2001).]
Hi,
I have read it somewhere that we do get some "Fill in the Blanks" type of questions along with multiple-type questions. Is it correct? If yes, then how many? How do they evaluate it on the spot, because if we give a slight different syntax, then the computer may not accept it.
Thanks,
Deepak
I guess at the time of initialization of i, it gives a call to function giveMe(). And since j has not been initialized any value, it returns 0.
I am getting a bit confused here. I think the String is immutable. So won't the codes written above give compilation error. Thanx in advance.
Hi Navin,
Don't forget me. d_jindal@hotmail.com
Thanks,
Deepak
In your second question, you cann't change the layout once you added the components to it. You just set the layout once, before adding the components to it.