Java Interview Questions
- 0of 0 votes
AnswersName all the memories which are available in JVM?
- JavaJava January 17, 2011
I knew only heap and perm. Is there any other memory also?| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Java - 0of 0 votes
AnswersWhat intern method does in java?
- Shivaprasad January 02, 2011| Report Duplicate | Flag | PURGE
Thirdware Technologies Software Engineer / Developer Java - 0of 0 votes
AnswersExplain one of your project you have done in your past and what challenges did you face in that? If given one chance what would you like to change in the project you worked on
- Anonymous December 14, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Java - 0of 0 votes
AnswersDesign and implement APIs for caching web pages.
- Anonymous November 29, 2010| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Java - 0of 0 votes
Answersi'm looking for an algorithm writen in rcursion on java. building a board with x switches so that all the rest of the board is bulbs (say signed as @), each switch has a strength so it make all the bulbs around it change their stats (on-off or the opposite). for example:
- nofar November 22, 2010
@@@@***@@
@@@@*S*@@
@@@@***@@
* -meaning lights on
say switch in some coordinates and strength =1
the algorithm would find the maximum possibility of lights on, not all switches must be on.| Report Duplicate | Flag | PURGE
Java - 0of 0 votes
AnswersYou are given a series of XML file.How will you parse the XML and convert to a java object.
- Pre November 09, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
Answers4) List sorting algorithms.
- Nona Namgiv November 09, 2010
a. What is the Computational complexity of merge sort| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersProgram sum of 1 to 10 numbers.
- Jango November 01, 2010
explain your answer
If you used arithmetic progrssion fot answer then derive the answer without mathematical proof/induction/using example for your answer (you should not be calculating 111111111 numbers as an example for instance)| Report Duplicate | Flag | PURGE
Developer Program Engineer Java - 0of 0 votes
AnswersYou have an Array of a million numbers. Duplicates exist in the array.
- Jango October 26, 2010
Print out all duplicate numbers.
Give best way to do this.| Report Duplicate | Flag | PURGE
Financial Software Developer Java - 0of 0 votes
AnswersHow would you Test Amazon Search Box ?
- dhaval0129 September 20, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Java - 0of 0 votes
AnswersGiven the following: You have an application that consists of three parts: a front end GUI, a middle-ware layer where all the processing of data takes place and a database where data is read from.
- dhaval0129 September 13, 2010
What are the areas that would be most likely to break? What would your testing strategy for this be? Why?| Report Duplicate | Flag | PURGE
GE (General Electric) Software Engineer / Developer Java - 0of 0 votes
AnswersI want to create a course registration database for a university. I want to store information for each department, information for each course (including which department they’re offered under as well as which professors are teaching them), information for each professor, and the list of the registered students and which courses each student has registered for.
- dhaval0129 September 13, 2010
Keep in mind that an instance of a course could be taught by multiple instructors (i.e. one instructor for the first half of the course and then a different instructor for the second half).
Also keep in mind that there could be multiple instances of a given course offered by different sets of instructors (e.g. offered by Bob Smith on Mondays & Wednesdays at 10am and Bill Jones on Tuesdays & Thursdays at 1pm).
Design a set of database tables to store this information.| Report Duplicate | Flag | PURGE
GE (General Electric) Software Engineer / Developer Java - 0of 0 votes
AnswersI want to create an in-memory definition of an underground city subway system. I want to maintain a list of all of the available stops (i.e. locations) and routes that service these stops. I want to be able to store the schedule for each route. Keep in mind that a given location may be on multiple routes, that a train on a route will visit a given stop multiple times per day, and that each route will have 2 directions.
- dhaval0129 September 13, 2010
Design a set of in-memory data structures to maintain this information in memory. I’m not interested in seeing information about how this information would be stored on persistent storage (e.g. hard disk).
I also want to be able to tell a customer how to get from one location to another location and how long it will take them to get there (keeping in mind that it may require them to take multiple trains). Describe how you would fulfill this request with your design.| Report Duplicate | Flag | PURGE
GE (General Electric) Software Engineer / Developer Java - 0of 0 votes
AnswerI want to model the rooms in a house.I want to know what the color and texture of the walls is for each room. I want to know what the flooring material is, what color it is, and the condition of the flooring. I want to be able to call something that returns me the area for each room (you can assume all rooms are rectangular). I want to know how many major appliances are in the kitchen. I want to know how many TV’s are in each room. I want to know for each bedroom if there is an attached bathroom. For each bathroom I want to know if it is a full bath or half bath. I also want to know how many beds are in each bedroom. For all the rooms I want to know if they are heated or cooled and if cooled what is the method of cooling.
- dhaval0129 September 13, 2010
Design the class structure to implement this.| Report Duplicate | Flag | PURGE
GE (General Electric) Software Engineer / Developer Java - 0of 0 votes
Answerswrite a method in java which takes argument as text string and array of token strings and find number of occurrences for each of the tokens in text string.
- Anshum Verma September 03, 2010| Report Duplicate | Flag | PURGE
Flipkart Software Engineer / Developer Java - 0of 0 votes
Answerwhat is daemon thread in java
- srinu August 30, 2010| Report Duplicate | Flag | PURGE
Java - 0of 0 votes
AnswersDesign parking lot
- Hinax August 28, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
Answerswrite your own ArrayList in Java ?
- guest123 August 26, 2010| Report Duplicate | Flag | PURGE
Oracle Developer Program Engineer Java - 0of 0 votes
Answerswhat is the signature & body of method returning a singleton instance?
- chandler August 25, 2010| Report Duplicate | Flag | PURGE
Flipkart Software Engineer / Developer Java - 0of 0 votes
Answersjava:
- K L August 16, 2010
static void printN(int a, double b) {System.out.println("Print 1");}
static void printN(float a, int b) {System.out.println("Print 2");}
static void printN(double a, float b) {System.out.println("Print 3");}
static void printN(int a, int b) {System.out.println("Print 4");}
static void main(String args[]){
printN(2, 2.0f);
}
Which one will print and why?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Java - 0of 0 votes
AnswersWhat is Java Reflection API?
- Jig August 10, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
AnswersWrite a program to find integer equivalent of a string. E.g : for "121" input o/p should be integer 121
- Anonymous August 08, 2010| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswerHow will you go about implementing BlockedQueue with a List
- Anonymous August 08, 2010| Report Duplicate | Flag | PURGE
Highbridge Capital Front-end Software Engineer Java - 0of 0 votes
AnswersGiven a list of Integers,Find the tuple of 3 adjacent elements in this list that adds up to the maximum sum.
- Kiran August 06, 2010| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer Java - 0of 0 votes
Answersfind the depth of a binary tree
- anniyan August 04, 2010| Report Duplicate | Flag | PURGE
Adobe Software Engineer / Developer Java - 0of 0 votes
Answerswrite a code that returns the 5 most common occuring strings in a list
- anniyan August 04, 2010
for example list would be something like
"a" "b" "c" "f" "a" "d" "e" "f" "b" "f" "f"
and the function would return
f 4
a 2
b 2
c 1
d 1| Report Duplicate | Flag | PURGE
Adobe Software Engineer / Developer Java - 0of 0 votes
AnswersWhat is the difference between Serializable and Externalizable interfaces
- dynamic July 31, 2010| Report Duplicate | Flag | PURGE
Siemens Software Engineer / Developer Java