Cognizant interview question

Explain multithreading in Java Syntax for establishing a connection in php