Frage im Vorstellungsgespräch bei Thoughtworks

How does API work, Code Singleton pattern and Synchronous block in JAVA