---
title: "Discussion on \"The optimal approach to find the nth Fibonacci number using recursion in Java\" | Hashnode"
description: "Discussion on \"The optimal approach to find the nth Fibonacci number using recursion in Java\". If you are a programmer or computer science student, you must be aware of the Fibonacci sequence and how we calculate it using recursion. No?\nOk, then, let's see the typical recursive approach.\nprivate static int headRecursion(int n){\n        if (n==..."
url: "https://hashnode.com/posts/the-optimal-approach-to-find-the-nth-fibonacci-number-using-recursion-in-java/62bd73423948871077879d95"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The optimal approach to find the nth Fibonacci number using recursion in Java](https://sumant.dev/the-optimal-approach-to-find-the-nth-fibonacci-number-using-recursion-in-java?utm_source=hashnode&utm_medium=feed)

If you are a programmer or computer science student, you must be aware of the Fibonacci sequence and how we calculate it using recursion. No? Ok, then, let's see the typical recursive approach. private static int headRecursion(int n){ if (n==...

Jun 30, 2022 · 2 min read · sumant.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#recursion](https://hashnode.com/tag/recursion)
-   [#nth-fibonacci-number](https://hashnode.com/tag/nth-fibonacci-number)

## Written by

[Sumant Kumar](https://hashnode.com/@sumant4ssm)

@sumant4ssm · Gurgaon

  
[View profile](https://hashnode.com/@sumant4ssm)

A software geek who loves exploring new technolgies and developing application using Java technologies and Vue.js.

A software geek who loves exploring new technolgies and developing application using Java technologies and Vue.js.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
