Ingeniero De Software Senior Java Interview Questions

5,572 ingeniero de software senior java interview questions shared by candidates

Given a list of houses, each painted with one of three colors, you want to minimize the cost of painting all the houses such that no two adjacent houses have the same color. You are provided with a 2D array where each element represents the cost of painting a house with a specific color. How can you implement a Java program to calculate the minimum cost to paint all houses while adhering to the color restriction?
avatar

Senior Java Developer

Interviewed at Apple

4.2
Apr 18, 2025

Given a list of houses, each painted with one of three colors, you want to minimize the cost of painting all the houses such that no two adjacent houses have the same color. You are provided with a 2D array where each element represents the cost of painting a house with a specific color. How can you implement a Java program to calculate the minimum cost to paint all houses while adhering to the color restriction?

how many methods are in Object class, why java allow to write Abstract class with any method( abstract or non abstract) such type of foolish questions., how to set data in final class etc. Worse company as per my experience.
avatar

Senior Java Developer

Interviewed at Deloitte

3.8
Jan 18, 2017

how many methods are in Object class, why java allow to write Abstract class with any method( abstract or non abstract) such type of foolish questions., how to set data in final class etc. Worse company as per my experience.

List<String> list = new ArrayList<String>(); System.out.println(list.get(0)); what will be the output what type of ioc container in spring where we can use @bean and @ component what will happen if we do not provide constructor private in Singleton
avatar

Senior Java Developer

Interviewed at Zensar Technologies

3.7
Jan 20, 2021

List<String> list = new ArrayList<String>(); System.out.println(list.get(0)); what will be the output what type of ioc container in spring where we can use @bean and @ component what will happen if we do not provide constructor private in Singleton

Viewing 891 - 900 interview questions

Glassdoor has 5,572 interview questions and reports from Ingeniero de software senior java interviews. Prepare for your interview. Get hired. Love your job.