Originally posted by Surya K:
Could you pls. tell me the sullyvan Mock exam address.
Originally posted by Nirmala:
Hi all,
http://www.software.u-net.com/applets/Exam/Exam.htm
After finshined this exam ,message displayed you got 85% and see html version to see the wrong answers. But I could not find the Html version. Can anybody send help me.
Thanks.
Nirmala
Originally posted by sdev:
I tried to use yield() in the main method, when I called yield() from the currently running thread that is main() then the o/p is
in.run()
after t.start()
May be you can make out the answer why it was reverse before.
Thank you, sdev and Ankur.
Thread class has static final int member
MIN_PRIORITY =1;
NORM_PRIORITY = 5;
MAX_PRIORITY =10;
The default priority is NORM (I guess) if you
do not set priority property for a thread.
Question: I have a doubt, how can you say the thread priority is 5.
class Test3 implements Runnable {
public static void main(String args[]) {
Test3 rt = new Test3();
Thread t = new Thread(rt);
t.start();
Thread.yield();
System.out.println("after t.start()");
}
public void run() {
System.out.println("in run()");
}
}
thanks
sdev
Originally posted by Daniel Liu:
What is the output when compile and excute the following code?
class Test implements Runnable {
public static void main(String args[]) {
Test rt = new Test();
Thread t = new Thread(rt);
t.start();
System.out.println("after t.star()");
}
public void run() {
System.out.println("in run()");
}
}
The output on my machine (NT) was:
after t.star()
in run()
Why???
Originally posted by Ajay Kumar:
Hi everybody,
I have uploaded the MindQ exam into the xdrive at www.xdrive.com and LOGIN as javacert and PASSWORD as javacert. In the public folder U will find the MindQ.htm. Download the file to your drive and use it. There may be some problems with the original file so the answers are at
http://www.javaranch.com/ubb/Forum24/HTML/001146.html .
Good Luck
Ajay K.
PS. The site also has numerous other files useful for java certification. I hope Ramamurthy does not mind.
Originally posted by Ankur:
It means that >> operator will put the same sign in the most significant bits i.e. for +ve nos. it will put zeros and for -ve nos it will put 1 in the most significant bits.