Java developer Interview Questions in Gurgaon, Haryana | Glassdoor.co.in

Find jobs for java developer

Java developer Interview Questions in Gurgaon, Haryana

363

java developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

program for Armstrong number and program for factorial

3 Answers

*Armstrong Number= { int num=370,number,temp,total=0; number=num; while(number!=0) { temp=number%10; total=total+temp*temp*temp; number/=10; } if(tota==num) System.out.println(num+"is an Armstrong Number"); else System.out.println(num+"is not an Armstrong Number"); } *Factorial using For Loop= { int number=5; long fact=1; for(int i=1;i<=number;i++) { fact=fact*i; } System.out.println("Factorial of "+number+" is:"+fact); } *Factorial using While Loop= { int=5; long fact=1 int i=1; while(int i<=number) { fact=fact*i; i++; } System.out.println("Factorial of "+number+" is:"+fact); }

*Armstrong Number= { int num=370,number,temp,total=0; number=num; while(number!=0) { temp=number%10; total=total+temp*temp*temp; number/=10; } if(tota==num) System.out.println(num+"is an Armstrong Number"); else System.out.println(num+"is not an Armstrong Number"); } *Factorial using For Loop= { int number=5; long fact=1; for(int i=1;i<=number;i++) { fact=fact*i; } System.out.println("Factorial of "+number+" is:"+fact); } *Factorial using While Loop= { int=5; long fact=1 int i=1; while(int i<=number) { fact=fact*i; i++; } System.out.println("Factorial of "+number+" is:"+fact); }

*Armstrong Number= { int num=370,number,temp,total=0; number=num; while(number!=0) { temp=number%10; total=total+temp*temp*temp; number/=10; } if(tota==num) System.out.println(num+"is an Armstrong Number"); else System.out.println(num+"is not an Armstrong Number"); } *Factorial using For Loop= { int number=5; long fact=1; for(int i=1;i<=number;i++) { fact=fact*i; } System.out.println("Factorial of "+number+" is:"+fact); } *Factorial using While Loop= { int=5; long fact=1 int i=1; while(int i<=number) { fact=fact*i; i++; } System.out.println("Factorial of "+number+" is:"+fact); }

find out even and odd number without using %(modulas) and /(division) operator.

3 Answers

Factory design pattern

2 Answers

Can we have multiple inheritance in JAVA?

2 Answers

core java basics question

1 Answer

circular linkedlist

1 Answer

They asked me if had ever traveled outside India, specifically to the US.

1 Answer

OOPS Concept, Adv. java, Frameworks in java, Design Patterns

1 Answer

basic core java questions and some logical coding were asked.

1 Answer

Questions were quite simple like Define OOP Concepts in Java, Exception Handling and How to do inhertance and basic HR questions like Tell me something about yourself.

1 Answer
110 of 363 Interview Questions