Informatica Interview Question for Software Engineer / Developers


Country: India
Interview Type: Phone Interview




Comment hidden because of low score. Click to expand.
2
of 2 vote

You don't absolutely have to have them. They're convenient because they allow you to use a helper class without exposing the helper class to the outside world. It's a form of information hiding.

- eugene.yarovoi June 15, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

It depends on the desing. Map interface contains Entry inner static interface .. which means Entry interface is not in need of accessing Map Interface instance members.. So if we want to restrict our inner class not to access instance members of outer class, then definitely we would make our inner class as static inner class..

- Aresh January 16, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Same as @eugene.yarovoi told except the need of declaring the inner class as

static

is that the inner class wont be defined everytime an intance of outer class is created.

Once we declare the inner class as static the innder class is defined and loaded once when outer class is loaded.

- vasa.v03 January 30, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

for applying builder design pattern it is useful to have a static inner class.

- pawancse.16 April 06, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Taking a scenario in consideration:

class Traveler
{
	int age;
	...
	static class Meal
	{
		int type;
		...
	}
}

2 reasons:
a) Because class Meal is only to be used by Traveler class. So, no need to make it a top-level class.
a) better encapsulation (Here, Meal class does not require access to the non-static members of class Traveler).

- anonymous January 30, 2015 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More