Java Software Engineer Interview Questions

3,079 java software engineer interview questions shared by candidates

1. split array int smaller arrays based on given size. int[] original = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; int splitSize = 3; /* expected Output [0, 1, 2] [3, 4, 5] [6, 7, 8] [9] */ 2.Flatten object array. Object[] array = { 1, 2, new Object[]{ 3, 4, new Object[]{ 5 }, 6, 7 }, 8, 9, 10 };
avatar

Software Engineer - Java Developer

Interviewed at Wissen Infotech

3.8
Jun 12, 2023

1. split array int smaller arrays based on given size. int[] original = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; int splitSize = 3; /* expected Output [0, 1, 2] [3, 4, 5] [6, 7, 8] [9] */ 2.Flatten object array. Object[] array = { 1, 2, new Object[]{ 3, 4, new Object[]{ 5 }, 6, 7 }, 8, 9, 10 };

Viewing 1421 - 1430 interview questions

Glassdoor has 3,079 interview questions and reports from Java software engineer interviews. Prepare for your interview. Get hired. Love your job.