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
4y
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
4y
  1. public class BooleanExample1 {
  2. public static void main(String[] args) {
  3. int num1=10;
  4. int num2=20;
  5. boolean b1=true;
  6. boolean b2=false;
  7. if(num1
  8. {
  9. System.out.println(b1);
  10. }
  11. ...read more
Nandhini B
4y
  1. class FibonacciExample1{
  2. public static void main(String args[])
  3. {
  4. int n1=0,n2=1,n3,i,count=10;
  5. System.out.print(n1+" "+n2);//printing 0 and 1
  6. for(i=2;i//loop starts from 2 becau...read more
Add answer anonymously...
Cognizant Java Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter