///
Ao se executar o código Java apresentado a seguir, o resultado obtido será 13.
package teste;
import java.math.BigInteger;
import java.util.concurrent.ExecutionException;
public class Teste {
public static void main(String[] args) throws InterruptedException, ExecutionException {
Teste a = new Teste();
System.out.println(a.getNumero(5));
}
public BigInteger getNumero(final int valor)
throws InterruptedException, ExecutionException {
if (valor == 0 valor == 1)
return BigInteger.valueOf(valor + 1);
return getNumero(valor - 1).add(getNumero (valor - 2));
}
}