Apex 中哪些方法必须是静态的?

What methods must be static in Apex?

我正在准备专业评估,目前我有一个问题无法给出完整的答案,因为我是 Apex 的新手。

问题:描述静态方法的特点。哪些方法(必须)必须是静态的?

第一部分没有问题,但我想在第二部分的某个地方找到详尽的答案。例如注解@Future等

static 方法需要在不需要 class 的实例时使用,或者如果该方法需要暴露给其他调用者。 lwc/aura/visualforce 远程处理方法就是这方面的例子。

查看这些链接,了解为什么需要 static 的示例

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex.htm

https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.apex

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_RemoteAction.htm