Dhamu. Com

Greenhorn
+ Follow
since Sep 28, 2000
Merit badge: grant badges
For More
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 Dhamu. Com

Dear Bindu! Hi!
U asked @ daemon & non-daemon thrds.
Well daemon thrds. are those thrds. which are invoked by the system and run in the background like services in Windows NT and Daemon processes in Unix.In JAVA JVM always executes a thread known as green thread as the b/g process. So these are the b/g threads.
Non-daemon thrds. are invoked by the user or programmer.After executing it's task it will get died. So it run only in f/g.
If still confusion is there fill free to ask.
Dharmesh.
Dear Bindu! Hi!
Well daemon threads are the threads which run in the background. Thease are like the services in Windows NT and daemon process in unix like httpd,smbd etc. So thease threads are being executed countinuously by the operating system as b/g processes.Which are invoked by the system. In JVM a green thread is always present.This is daemon thread.
The non-daemon thread is the thread invoked by the user or programmer.After finishing it's task this thread will get died.This you can say forground process.
If still doubt is there fill free.
Dharmesh.
Dear friends!
The above code (fisrt block) works with following.
Long L = new Long(9);
if(L.equals(new Long(9)))System.out.print("True");
o/p will be true.
I'm Dharmesh Rathod from Gujarat, Surat. Is there any JAVA Ranchiest who belongs to Gujrat. I want to know regarding test centre in Gujrat. Right now it is at Ahmedabad.Is there a center elsewhere? What is the effect of SCJ2P new exam? Pl. let me know. and any Gujju JAVA Ranchist be in touch.
Dharmesh.
This could be printing mistake. If it there in real exam than you are right.
Dharmesh.
Dear Sunitha! Hi!
I would like to request you to try following on wrapper class.
Long L = new Long(9);
Integer I = new Integer(9);
if(L.equals(I)) System.out.println("True");
else
System.out.prinln("False");

if(I.equals(L)) System.out.println("True");
else
System.out.prinln("False");

Both the time you get False.
if you try if(L.equals(new Long(9)))System.out.println("Ture"); Then the o/p is True.
Dharmesh.
Dear Kishan!
I have gone through your question, it's working smoothly.(Without any modification).
You try to execute the followed program. This is the revised version of your question.
Now in this prog. I have given no. to the statements.
If you write st.1 o/p will be Out constructor executed.
If write st. 2 o/p will be Out constructor exeecuted
Out constructor exeecuted
I am inner..

If you write st. 3 runtime exception is throw saying following
Exception in thread "main" java.lang.VerifyError :
(Class uter,method signature);
([Ljava/lang/string V) Expecting to find uninitialized object on stack.
***** program *****
class out
{
out()
{
System.out.println("Out Constructer executed");
}//out
static class inner extends outer
{
inner()
{
System.out.println("I am inner Constructor.. ");
}//inner
}//out class

public class outer extends out
{
public static void main(String args[])
{
outer o = new outer(); //1
inner i = o.new inner(); //2
inner i = new inner().new inner(); //3
}//main
}//outer
Be in touch.
Dharmesh.
Dear Suchitra! Hi!
Well the mock exams will be usefull at all.B'coz the syllabus of the exam has not got changed. So play with mock exams and get confident. Yes the time duration has got decresed to 90 minutes. But the passing score is only 61%.
All the best
Dharmesh
Dear Rahul! The min. score reqrd. for passing scjp2 is now 61%.The time limit is 90 minutes. and the syllabus is same.
I may get voucher tommorow . I want yo appear in the next week of october.
Bee Coooooool!
All the best.
Dharmesh
Dear Friends!!
Weather const , goto , strictfp is asked in SCJP2?
PL. Inform.
Thankx
Dharmesh
Dear friends!
What is javacaps mock exams?
Where it is available?
Thanks in Advance.
Dharmesh Rathod
Try this Qs.
class Alpha{}
class Beta extends Alpha{}
class Gamma extends Alpha{}
public class AlphaTest
{
public static void main(String args[])
{
Alpha alpha = new Beta();
if (alpha instanceof Beta) System.out.println("Beta");
if (alpha instanceof Alpha) System.out.println("Alpha");
if (alpha instanceof Gamma) System.out.println("Gamma");
else
System.out.println("Not Gamma!! Why ?");
}
}
Dear friends! I have heard that the cram exam book from brogden is so usefull and so important as far as the test is concerned.
Is it true?
Pl. tell me.
Tell me the other suggetion for preparation and for the mock exams.

Thank you very much in advance.
Dhamu.Com