Informatica Interview Question

Explain publisher subscriber design pattern and code it up in Java