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
- public class BooleanExample1 {
- public static void main(String[] args) {
- int num1=10;
- int num2=20;
- boolean b1=true;
- boolean b2=false;
- if(num1
- {
- System.out.println(b1);
- } ...read more
Nandhini B
4y
- 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
//loop starts from 2 becau...read more
Add answer anonymously...
Top Cognizant Java Developer interview questions & answers
Popular interview questions of Java Developer
Top HR questions asked in Cognizant Java Developer
Stay ahead in your career. Get AmbitionBox app
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