James Watson
Posts: 2024
Nickname: watson
Registered: Sep, 2005
|
|
Re: Visualizing Concurrency
|
Posted: Apr 23, 2008 6:50 AM
|
|
> Yes, you have clues but no documented formal guarantee > that I am aware of.
You mean other than the source?
public String toString() {
return this;
}
In any event, is this reall important? It's not the point of the question. As I pointed out before, if the candidate is unsure, they can ask whether String.toString() is synchronized or not. If they assume it is, that's not a very good sign. If they are unsure and don't ask, that's bad too. If you really understand Java synchronization the question is trivial and my intention in asking it should be fairly transparent.
|
|