Amazon Interview Question for Software Engineer / Developers






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

I think there is no keyword called finalizer. Java has three keywords.1. Final 2. Finally 3. Finalize

Final : If we declare variable like static final, we can not change that variable. It constant througout the program
Finally: We can use finally key word with try and catch. This (Finally) block executes irrespective of the try catch block
Finalize: JRE can call finalize method before an object is going to be Garbage Collection. Means it is the last chance of object to full fill its responsibility

Hope you like it. If anything is wrong pls let me know

- Gopal March 21, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Very nice answer.....

- vlokeshwaran1987 July 06, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Tx

- Gopal July 06, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Final : If you use final for a variable and declare that variable with some value , you can't change that value later
If you declare a method with final keyword, it can't be override in the sub class
If you declare a class with final keyword, that class can't be sub classed.

- satish April 04, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Ya finalizer is just a concept in Java that uses finalize.

- Artin April 05, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

a finalizer is a method that perform finalization and it's executed during object destruction

- Jeremy January 25, 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