
Asked in Cognizant
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
Add answer anonymously...
Top Java Developer Interview Questions Asked at Cognizant
Q. What are the differences between JDK, JVM, and JRE?
Q. What are the main features of Java?
Q. Can you explain the internal workings of a HashMap?
Interview Questions Asked to Java Developer at Other Companies
Top Skill-Based Questions for Cognizant Java Developer
Java Interview Questions and Answers
250 Questions
Data Structures Interview Questions and Answers
250 Questions
Web Development Interview Questions and Answers
250 Questions
Algorithms Interview Questions and Answers
250 Questions
Software Development Interview Questions and Answers
250 Questions
Spring Boot Interview Questions and Answers
50 Questions
Stay ahead in your career. Get AmbitionBox app


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
AmbitionBox Awards
Get AmbitionBox app

