A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Joined: Nov 14, 2005
Jan 27, 2006 04:57:00
i m new to
. I have a doubt a snipplet. weather it will work fine or not ?
can some one suggest me?
private Object a;
public synchronized void find(Object key)
in this code i m using the method synchronized and calling the same method
recursivly. my doublt is weather this code will run fine or run with some run time exception.
thanks in advace..
[ January 27, 2006: Message edited by: shailesh Jammie ]
Joined: Sep 16, 2005
Jan 27, 2006 05:17:00
Try it and see. What did you discover?
There is no emoticon for what I am feeling!
is other method also synchronized
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015