Multiple choice technology programming languages

What will be the syntax for the Perform node created by the developer

  1. public void perform() { }

  2. public boolean perform() { }

  3. static public boolean perform() { }

  4. public void perform() throws Exception { }

  5. public boolean perform() throws Exception { }

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The perform() method in a Perform node must be public, return void, and declare throws Exception to handle any exceptions that may occur during execution. The method needs to throw Exception rather than return boolean because the framework handles exception propagation. Static methods are not used for instance-level perform nodes.