Cognizant Interview Question

Write a Java code for Fibonacci series ?