Oracle Interview Question

Technical Questions Can you explain the difference between a process and a thread? How does garbage collection work in Java? What are the key differences between REST and SOAP APIs? What is a deadlock? How can it be prevented?