TCS Interview Question

Write a code in java for Fibonacci numbers