Principal Software Interview Questions

10,165 principal software interview questions shared by candidates

Assume there is a list of 6 numbers. Use Java Stream to print "A" if its divisible by 2 , print "B" if its divisible by 3 and print "C" if its not divisible by 2 and 3. Expectation is you do not run the loop more than once.
avatar

Principal Engineer

Interviewed at Bottomline

3.6
Aug 10, 2024

Assume there is a list of 6 numbers. Use Java Stream to print "A" if its divisible by 2 , print "B" if its divisible by 3 and print "C" if its not divisible by 2 and 3. Expectation is you do not run the loop more than once.

Viewing 9901 - 9910 interview questions

Glassdoor has 10,165 interview questions and reports from Principal software interviews. Prepare for your interview. Get hired. Love your job.