Question: what is difference between public and global class in apex?
Answer: Public: This means the method or variable can be used by any Apex in this application or namespace. Global: This means the method or variable can be used by any Apex code that has access to the class, not just the Apex code in the same application.