This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Query: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Query:" Watch "Query:" New topic


shailesh Jammie

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)

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 ]
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!
Have you checked out Aspose?
subject: Query:
It's not a secret anymore!