If class A needs to inform class B about an important event, what java technique can you use?  A and B can be in the same thread, different threads, or different processes. List as many as you can.