File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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!
I agree. Here's the link:
subject: Query:
It's not a secret anymore!