write program fibonacci series, write program using boolean, write class cast exceptn, singleton design pattern(like you have to jvm one have jdk 1.7 and other have jdk 1.8 how many instance created if one then how and more than two then how we convert them to one, explain abstract clss and interface in your current project explain hassing in hash map how many bucket fail fast fale safe how you handle exception in sping spring bean life cycle write a program for generics

AnswerBot
1y

This interview question covers various topics including programming, design patterns, data structures, and exception handling in Java.

  • Write a program to generate the Fibonacci series

  • Write a program us...read more

Nandhini B
5y
package com.devdaily.javasamples; import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class ClassCastExceptionExample { public ClassCastExceptionExample() { List list ...read more
Nandhini B
5y
    public class BooleanExample1 { public static void main(String[] args) { int num1=10; int num2=20; boolean b1=true; boolean b2=false; if(num1<num2) { System.out.println(b1); } ...read more
Nandhini B
5y
    class FibonacciExample1{ public static void main(String args[]) { int n1=0,n2=1,n3,i,count=10; System.out.print(n1+" "+n2);//printing 0 and 1 for(i=2;i<count;++i)//loop starts from 2 becau...read more
Select
Add answer anonymously...

Cognizant Java Developer interview questions & answers

A Java Developer was asked 2mo agoQ. What are the differences between JDK, JVM, and JRE?
A Java Developer was asked 3mo agoQ. Write code to check if a given string is a palindrome.
A Java Developer was asked 9mo agoQ. Given a string, print each letter and the number of times it occurs.

Popular interview questions of Java Developer

A Java Developer was asked 2mo agoQ1. What are the differences between JDK, JVM, and JRE?
A Java Developer was asked 3mo agoQ2. Write code to check if a given string is a palindrome.
A Java Developer was asked 9mo agoQ3. Given a string, print each letter and the number of times it occurs.
Cognizant Java Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits