This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!

sam pitt

Ranch Hand
+ Follow
since Mar 07, 2001
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 sam pitt

I have been studying for past 7 months. I use Khalid and Ivar Hortan ... very good books. Lot's use Robert Heller and has good reviews. I think there are ample mocks on web. You may want to see Maha Ana's page. I think it is www.javaranch.com/mocks.jsp
All these mocks would equip you with all the possible types of questions.. and hopefuly you won't need real exam questions.
ALso, try Marcus Green's exams... they are very good!!
-Sam
Why you want real exam questions ? Don't you feel you must give exams in honest manner ?
-Sam
[This message has been edited by sam pitt (edited October 13, 2001).]
Never mind.. I got it ! I was missing one }
Thanks for quick reply!!
-Sam
Thanks.. I changed it ... but I get following error

MyClass7_1.java:23: Method void main(String[]) can't be static in inner class Ou
ter. MyClass7_1. Only members of interfaces and top-level classes can be static
.
public static void main (String args[])
^
MyClass7_1.java:28: '}' expected.
}
^
2 errors

Did you get a clean compile ?
Thanks
Sam

Please cut and paste this code and try to compile it. I am getting compiling errors ... do not know why ?. The code is from KAM
Thanks
-Sam
latha,
Offline browsing is good for smaller websites with no dynamic contents. I do not think it is possible to download the entire javaranch board. Even if the entire board can be downloaded, you may need couple of hundred Gig of memory. Instead of investing in memory on your computer you are better off with online browsing
HTH
Sam
Sounds to me a very ambigous question.
(1) As far as I know, there is no release method related to Thread
(2) wait : This method is used when you want to put the 'running' thread into 'not running' state (in the wait pool)
(3) continue : Is a keyword in Java, nothing to do with locks
(4) notifyall: Used to signal thread(s) from the waiting pool to move to 'ready to run' state.
-Sam
Thanks all for your responses.
-Sam
I have a question about start() method of Thread object
Look at the following psuedo code
public class Test extends Thread
{
public void run()
{
// Code to run
}
public static void main(String[] args)
{
new Test().start();
new Test().start();
}
}
When you start the thread as above, are two threads created on
same object Test or one thread each is created on two distinct
Test objects ?
Any help is appreciated
Sam
I fail to understand, why does the author force to click on some 'Vegas' link to download 'SCJP' stuff. How are these two related ?
Will he sponsor our trip to Vegas after passing the exam ?



-Sam
[This message has been edited by sam pitt (edited August 13, 2001).]
I think as long as you let prometric know one business day in advance about your cancellation it is fine. You should be able to use your voucher for your rescheduled exam
Sam
If you have already registered for the exam, I would like to know more about it !! .What is the best way to register for the exam. Via Telephone or from www.2test.com
Please share your experience with me. Did anybody had any bad (or good) experiences registering one way or the other.
Thanks
Sam
Never mind ranchers.. I found a similar thread here
http://www.javaranch.com/ubb/Forum24/HTML/010591.html
Thanks
Sam
The following is from marcus green test 1

When executed It prints "vandeleur". Why is that so ? I thought it should have been something like "vandeleur 0 1 2 3" because run() gets executed when start() is called .. right ?
-Sam
In KAM (page 284 in my book), at one point the author mentions that " If no explicit thread priority is specified for a thread, it is given the default priority of 5"
After this, right in the next sentence he says
"A thread inherit the priority of its parent thread"
What is right ?
-Sam