Cockroaches have a memory and can be taught to salivate in response to neutral stimuli in the way that Pavlov's dogs would do when the famed Russian doctor rang his bell, Japanese researchers found.