It depends on which map implementation you use.
For example, it ConcurrentHashMapsupports full concurrency, but get()will not wait for execution put()and will be specified in Javadoc:
* <p> Retrieval operations (including <tt>get</tt>) generally do not
* block, so may overlap with update operations (including
* <tt>put</tt> and <tt>remove</tt>). Retrievals reflect the results
* of the most recently <em>completed</em> update operations holding
* upon their onset.
Other implementations (e.g. HashMap) do not support concurrency and should not be used by multiple threads at the same time.