Pregunta de entrevista de Revolut

Is Hash Map thread Safe or Can we call Kotlin code In the Java class?