Java Developer Intern Interview Questions

30,827 java developer intern interview questions shared by candidates

Second round (programming pen & paper test) : 1) again I don't remember this exactly but I want to give you the idea of the question: In an inland there are white and black rats live. Both of these kind of rats have certain life span and it is as follows: White rats, At the end of the: 1) First year, white rats give birth to 2 rats 2) Second year, white rats give birth to 3 rats 3) Third year, it dies Black rats, At the end of the: 1) First year, black rats give birth to 3 rats 2) Second year, black rats die. Design a way to calculate the difference of their population if positive number N is the year and positive integer K is the initial number of rats. The output can be a large value so print it with the modulo of 10007. --------------end of the question------ Thats it. I think I have given you the most exact question asked in this round( ~98% accurate) 😁.
avatar

Java Developer

Interviewed at Softsuave

3.5
Nov 3, 2020

Second round (programming pen & paper test) : 1) again I don't remember this exactly but I want to give you the idea of the question: In an inland there are white and black rats live. Both of these kind of rats have certain life span and it is as follows: White rats, At the end of the: 1) First year, white rats give birth to 2 rats 2) Second year, white rats give birth to 3 rats 3) Third year, it dies Black rats, At the end of the: 1) First year, black rats give birth to 3 rats 2) Second year, black rats die. Design a way to calculate the difference of their population if positive number N is the year and positive integer K is the initial number of rats. The output can be a large value so print it with the modulo of 10007. --------------end of the question------ Thats it. I think I have given you the most exact question asked in this round( ~98% accurate) 😁.

You have an array of int with different numbers. You have to sort it in a way that the all the even numbers should come in the starting and odd numbers in the end. You cannot use a temp array or extra array in your solution.
avatar

Java Developer

Interviewed at Morgan Stanley

3.9
Nov 27, 2016

You have an array of int with different numbers. You have to sort it in a way that the all the even numbers should come in the starting and odd numbers in the end. You cannot use a temp array or extra array in your solution.

Viewing 291 - 300 interview questions

Glassdoor has 30,827 interview questions and reports from Java developer intern interviews. Prepare for your interview. Get hired. Love your job.