aspose file tools
The moose likes Beginning Java and the fly likes Query: Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Query:" Watch "Query:" New topic
Author

Query:

shailesh Jammie
Greenhorn

Joined: Nov 14, 2005
Posts: 11
hi all,
i m new to java. 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)
{
find(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..
Shailesh
[ January 27, 2006: Message edited by: shailesh Jammie ]
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Try it and see. What did you discover?


There is no emoticon for what I am feeling!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Query:
 
Similar Threads
Threads
monitor question
Redundant synchronization?
Synchronization
is other method also synchronized