Java Interview Questions
- -2of 2 votes
AnswerGarbage collection in java
- poojaarora014 February 22, 2015 in India| Report Duplicate | Flag | PURGE
Deshaw Inc SDET Java - 0of 2 votes
AnswersWe have a folder containing around 10000 files and each file having size greater than 2 GB.These files contain three fields namely date,users and their names.
- bornfromashes2011 February 10, 2015 in United States
How can we get the count of all unique users from 10000 files?| Report Duplicate | Flag | PURGE
Java - 3of 3 votes
AnswersHow to find efficiently the minimum of an array of integers that is the maximum of other arrays?
- wingchun0511 January 31, 2015 in France
Example:
A = [126, 110, 130]
B = [125]
C = [105, 115]
The minimum element of array A that is the maximum of B and C is 126| Report Duplicate | Flag | PURGE
Java Developer Algorithm Coding Java Online Test - 0of 0 votes
AnswersYou are given a list of strings
- rao January 28, 2015 in United States for Legal
/flapp/server/apache
/d/apps
/d/apps/pub
/flapp
/flocal/firms
/d/sw/java
/d/sw/orcl/jdbc
The filtered strings shoud be
/flapp
/d/apps
/d/sw/java
/d/sw/orcl/jdbc
/flocal/firms
You have to identify the problem/requirement and provide solution that can work for any input with similar pattern.| Report Duplicate | Flag | PURGE
Thomson Reuters Senior Software Development Engineer Algorithm Java Puzzle - 0of 0 votes
AnswersI have interview with Ericsson:
- nilofaraziz9 January 08, 2015 in United States
Working knowledge of server-side JavaScript
Working knowledge of WSDL, XSD and XML
Working knowledge of workflow concepts such as BPM, BPMN, BPML and BPEL.
Working knowledge of HTML
Working knowledge of integration technologies/frameworks including AXIS, SOAP, JMS, HTTP, Socket, FTP, SMTP/POP and integration platforms (EAI, ESB, BPI) such as JMS, MQ, WLI and Tibco
Good design skills
please help if anyone gone through interview process of Ericson.| Report Duplicate | Flag | PURGE
Java - 0of 0 votes
AnswersA program that prints all combinations of a n letter word without using recursion technique.
- ujirani123 January 07, 2015 in India
Example :
Word : abcd
abcd
bacd
cabd
acbd
bcad
cbad
dbac
bdac
adbc
dabc
badc
abdc
acdb
cadb
dacb
adcb
cdab
dcab
dcba
cdba
bdca
dbca
cbda
bcda| Report Duplicate | Flag | PURGE
Java - -5of 5 votes
AnswersHaving A List of int [1,1,1,3,1,2,1,1,4,1]
- NullVoid December 31, 2014 in India for ERP
Output needed [1,5,6,3,7,2,8,9,4,10]
Note: Need not to change value of 3,2,4| Report Duplicate | Flag | PURGE
N/A Software Engineer / Developer Arrays Java Linked Lists - 0of 0 votes
AnswersImplement a Singleton class in java? How will this help?
- pbsureja December 19, 2014 in United States| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer Intern Java - 0of 0 votes
AnswersA server receives requests from different clients...each client send a Runnable job and time on which this job should be run. Write a java program that would accept these jobs and run each job at the required time. Hint: the solution should have a job priority queue to hold the jobs and it should be multithreaded. One thread should accept the tasks, the other one should run the jobs. Also conditions and signalling will be used
- koks2000 December 09, 2014 in United States| Report Duplicate | Flag | PURGE
Linkedin Software Engineer Intern Java Threads - 1of 1 vote
AnswersYou have a class that many libraries depend on. You need to modify the class for one application. Which of the following changes require recompiling all libraries before it is safe to build the application?
- manojkumar16 December 04, 2014 in India
a. add a constructor
b. add a data member
c. change destructor into virtual
d. add an argument with default value to an existing member function| Report Duplicate | Flag | PURGE
Walmart Labs Applications Developer Java - -1of 1 vote
AnswersDo thread join without join function?
- manojkumar16 December 04, 2014 in India| Report Duplicate | Flag | PURGE
Walmart Labs Applications Developer Java - 0of 0 votes
Answershow to sent buffer limit in BufferedReader/ BufferedWriter class
- mdfirozansari December 03, 2014 in India| Report Duplicate | Flag | PURGE
HCL Product Security Engineer Java - 0of 0 votes
AnswersHow to implement thread safety in java without using synchronized method?
- mdfirozansari December 03, 2014 in India| Report Duplicate | Flag | PURGE
HCL Product Security Engineer Java - 0of 0 votes
AnswersChinese chess has 8*8=64 cells.And the point is (1,1),(1,2),..............(8,8).And the horse walks by diagonal line of two cells from where point it is.Calculate the shortest step(s) between two points for the horse to walk. Eg. (1,1) to (4,4). Horse go like this (1,1)>(2,3)>(4,4)
- MakeMe November 28, 2014 in United States| Report Duplicate | Flag | PURGE
Notfamous Developer Program Engineer Java - 0of 0 votes
AnswersChinese chess has 8*8=64 cells.And the point is (1,1),(1,2),..............(8,8).And the horse walks by diagonal line of two cells.Calculate the shortest step(s) between two points for the horse to walk. Eg. (1,1) to (4,4). Horse go like this (1,1)>(2,3)>(4,4)
- MakeMe November 28, 2014 in United States| Report Duplicate | Flag | PURGE
Notfamous Developer Program Engineer Java - 0of 0 votes
AnswersWrite a program to read file of following data structure: Name: favcolor=blue Find out which color is favorite by most people (print the color and number of people)
- KH November 06, 2014 in United States| Report Duplicate | Flag | PURGE
Software Engineer / Developer Java - 0of 0 votes
AnswersHow many minimum numbers from fibonacci series are required such that sum of numbers should be equal to a given Number N?
- abdulhameed.pathan November 03, 2014 in India
Note : repetition of number is allowed.
Example1.
N= 7;
answer = 2 (5 + 2 = 7)
Example 2.
N = 70;
Answer = 3 (34 + 34 + 2)| Report Duplicate | Flag | PURGE
Alcatel Lucent Java Developer Brain Teasers Java - 0of 0 votes
AnswersGiven an array of paper products in which each product has an attribute name, width, and height, and given a sheet of paper that has width xx and height yy, write a program that returns the number of sheets of paper needed to print out the array of paper products
- emptypeace October 24, 2014 in United States| Report Duplicate | Flag | PURGE
Vistaprint Software Engineer / Developer Algorithm Java - 3of 5 votes
AnswersWrite a program to implement Double Linked List from Stack with min. complexity.
- Purushotham Kumar October 20, 2014 in United States| Report Duplicate | Flag | PURGE
Google Software Engineer Intern Data Structures Java Linked Lists Stacks - -1of 1 vote
AnswersHow to implement split () method
- kirann October 17, 2014 in United States| Report Duplicate | Flag | PURGE
Java Developer Algorithm Java - 0of 2 votes
AnswersHow to implement split () method
- kirann October 17, 2014 in India| Report Duplicate | Flag | PURGE
Java Developer Algorithm Java - -1of 1 vote
AnswersWrite a program to split a string without using split()method
- kirann October 17, 2014 in India| Report Duplicate | Flag | PURGE
Java Developer Algorithm Java - 0of 0 votes
AnswersGiven a string .Check if the string is palindrome or not
- sharma October 14, 2014 in India| Report Duplicate | Flag | PURGE
Goldman Sachs Java Developer Java - 2of 2 votes
AnswersThe stepping number:
- Anon October 13, 2014 in United States
A number is called as a stepping number if the adjacent digits are having a difference of 1. For eg. 8,343,545 are stepping numbers. While 890, 098 are not. The difference between a ‘9’ and ‘0’ should not be considered as 1.
Given start number(s) and an end number(e) your function should list out all the stepping numbers in the range including both the numbers s & e.| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Algorithm Data Structures Dynamic Programming Java Online Test - 0of 0 votes
AnswersGiven two classes C1 and C2 which are almost same.(remember not exactly same).
- NIC October 03, 2014 in India
You want to choose best among these classes so that it can be use as key in hashmap.
What question will you ask regarding two classes C1 and C2.| Report Duplicate | Flag | PURGE
makemytrip Software Engineer / Developer Java - 0of 0 votes
AnswersWhat is the diffenrce between join() and wait()?
- newbee September 17, 2014 in United States
What is sleep(). Which method releases the lock?| Report Duplicate | Flag | PURGE
Intuit Senior Software Development Engineer Java - 0of 0 votes
AnswerHow can we implement asynchronous call in Java? Say I want to query Google but don’t want to use all the urls want to use later. How can we do that?
- newbee September 17, 2014 in United States| Report Duplicate | Flag | PURGE
Intuit Senior Software Development Engineer Java - 1of 1 vote
AnswersHow can we divide a large file between multi threads to process it? If we are running a multi threaded application and input is a large file and we have to provide each thread a part of the file to make it fast. How we can achieve it in java?
- newbee September 14, 2014 in United States| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Java - 1of 1 vote
AnswersIf we have all the variables and methods are as static. So would that class be thread safe?
- newbee September 13, 2014 in United States| Report Duplicate | Flag | PURGE
A9 Software Engineer in Test Java
Open Chat in New Window