top of page

Get auto trading tips and tricks from our experts. Join our newsletter now

Thanks for submitting!

Java based interview questions from Amazon, Bloomberg, Infosys, Goldman Sachs, Citigroup

Java based interview questions from Amazon, Bloomberg, Infosys, Goldman Sachs, Citigroup From http://www.careercup.com/page?pid=java-interview-questions&n=4 Amazon Interview Question for Software Engineer / Developersabout Java Vinme on February 08, 2008

I: Interviewer M: Myself I: What is singleton pattern? M: Explained about singleton pattern and constructor to be private and there will be a method (Static) which will return the object. I: How can i achieve Thread safe in this implementation? M: In Java we need to use “synchronized” keyword in order to make that method thread safe. I: If there are Million threads accessing this method, as you used synchronized all the other threads has to wait, which makes the application to run slower. So how can you achieve thread safe with out using synchronization? 10

Tags: Amazon » Java » Software Engineer / Developer Question #2610 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java dpan5 on February 03, 2008

In my 1st Phone interview: What is Linked List? Interface and abstract class Write java code for prime no: Threads Garbage collector Vector and Arraylist HashMap and HashTable Externalizable interface 1

Tags: Amazon » Java » Software Engineer / Developer Question #2607 (Report Dup) | Edit Amazon Interview Question for Development Support Engineersabout Java perllove on January 19, 2008

What is difference between String and StringBuffer classes. 3

Tags: Amazon » Java » Development Support Engineer Question #2683 (Report Dup) | Edit Amazon Interview Question for Development Support Engineersabout Java perllove on January 19, 2008

Write code for the following mode of string comparision. The method should return true if the second string contains all the characters of the first string (order is not important) and you should consider duplicates. For example, first string is aabc, true for kbaac, abac.. false for abc. Dont worry about the complexity. I guess the person just wants to see if I can write code. Also I think I got the correct idea in less than 30 seconds but putting it on the board took around 10 minutes. 12

Tags: Amazon » Java » Development Support Engineer Question #2593 (Report Dup) | Edit Amazon Interview Question for Development Support Engineersabout Java perllove on January 19, 2008

What does a static method mean in Java 4

Tags: Amazon » Java » Development Support Engineer Question #2591 (Report Dup) | Edit Amazon Interview Question for Development Support Engineersabout Java Threads perllove on January 19, 2008

What does Synchronized keyword before a method do in Java? 2

Tags: Amazon » Java Threads » Development Support Engineer Question #2588 (Report Dup) | Edit Amazon Interview Question for Development Support Engineersabout Java perllove on January 19, 2008

What is the difference between int and Integer and why is Integer required. 4

Tags: Amazon » Java » Development Support Engineer Question #2585 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java vairaghi on December 07, 2007

for a try/catch/finally block when is the finally block not executed. 4

Tags: Amazon » Java » Software Engineer / Developer Question #2546 (Report Dup) | Edit Bloomberg LP Interview Question for Software Engineer / Developers about Java Object Oriented Design mclarenfan on July 08, 2007

Why is access to static variables not allowed from non-static methods in java? 7

Tags: Bloomberg LP » Java Object Oriented Design » Software Engineer / Developer Question #2462 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java john on June 19, 2007

How is synchronization implemented in java ? explain ? 2

Tags: Amazon » Java » Software Engineer / Developer Question #2456 (Report Dup) | Edit Kingfisher airlines Interview Question for Analysts about Java Subhash on April 23, 2007

1:How will you maintain multiple webservices. 2:How will you configure CVS , or tell me about CVs configuration. 2

Tags: Kingfisher airlines » Java » Analyst Question #2969 (Report Dup) | Edit Goldman Sachs Interview Question for Software Engineer / Developers about Java Subhash on April 02, 2007

int function findValue(int[]arr,int val,intlowIdx,int highIdx) { if(lowIdx>=higIdx) return -1; int midIdx:=Math.floor((lowIdx+higIdx)/2); if(value>arr[midIdx]) return findValue(arr,value,midIdx+1,highIdx) else if (value,0,arr.length -1) a: log(n) log is of base 2 b: n**2 c: n*2 d: n 3

Tags: Goldman Sachs » Java » Software Engineer / Developer Question #3023 (Report Dup) | Edit Goldman Sachs Interview Question for Software Engineer / Developers about Java mallory knox on February 23, 2007

Why would you use an interface over an abstract class? 6

Tags: Goldman Sachs » Java » Software Engineer / Developer Question #2859 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Santhosh on February 22, 2007

What is Garbage Collection in Java. How is it implemented? What kind of algorithms does the garbage collector use? How does it know that references can be collected? What are advantages and disadvantages of garbage collection? 2

Tags: Amazon » Java » Software Engineer / Developer Question #3111 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Santhosh on February 22, 2007

What is the difference between Inheritance and Interfaces? Under what conditions would you prefer one over the other? 6

Tags: Amazon » Java » Software Engineer / Developer Question #2858 (Report Dup) | Edit Citigroup Interview Question for Software Engineer / Developersabout C Java Terminology & Trivia dantheman82 on August 15, 2006

Name a few differences between C# and Java. 2

Tags: Citigroup » C Java Terminology & Trivia » Software Engineer / Developer Question #2197 (Report Dup) | Edit Infosys Interview Question for Software Engineer / Developersabout Java Terminology & Trivia Ankur Dhawan on June 26, 2006

What log file can you refer to for determining if a JUnit test failed?

0 views0 comments

Comments


bottom of page