Java Developer Interview Questions
- 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
AnswersInput : {7,4,2,5,1,9,6}
- kirann October 16, 2014 in India
Output :{1,4,6 ,9,7, 5, 2}| Report Duplicate | Flag | PURGE
Java Developer Arrays - 0of 0 votes
AnswersGiven an input string, write a function that returns the Run Length Encoded string for the input string.
- sharma October 14, 2014 in India
For example, if the input string is “wwwwaaadexxxxxx”, then the function should return “w4a3dex6″.| Report Duplicate | Flag | PURGE
Goldman Sachs Java Developer Algorithm - 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 - 0of 0 votes
AnswersGiven an array arr=[5,2,-3,4,1]
- NIC October 10, 2014 in United States
print
_ _ * * * * *
_ _ * *
* * *
_ _ * * * *
_ _ *
Note [In real question, replace _ by blank(or space)]. So, while solving this question need to replace _ by blank ].| Report Duplicate | Flag | PURGE
Intelligrape Java Developer Algorithm - 0of 0 votes
AnswerBox stacking problem with boxes having k dimension, find max height of stack
- sprateek1990 September 29, 2014 in India| Report Duplicate | Flag | PURGE
Amazon Java Developer - 0of 0 votes
AnswersBox stacking problem with variation of boxes having K DIMENSIONS , find the max height of stack of boxes
- sprateek1990 September 29, 2014 in India| Report Duplicate | Flag | PURGE
Amazon Java Developer Algorithm - 0of 0 votes
AnswersA certain language uses a set of characters from a-z but not in the same sequence as in english.
- algoseeker September 17, 2014 in India
Now, words from the language appear in pair to you. e.g. LMOSS,NMOSS which implies that N comes after L, but not necessarily immediately after L. Similary, other words like{NMORR,TMORR}, { KSINN, KXINN }are also available.
What should be the data structure which should be used so that we can find out the character sequence in this language.| Report Duplicate | Flag | PURGE
Amazon Java Developer Algorithm - 0of 0 votes
AnswersWrite a java program read 3 numbers and line length make triangle..find whether triangle is isosceles or equilateral triangle,also find out rightangle triangle?
- Muni September 11, 2014 in India| Report Duplicate | Flag | PURGE
Kaseya Java Developer Java - 0of 0 votes
AnswersWrite a java program multiply two 10-digit numbers and the number is very large number(10,000) ten thousand digits,don't use any built-in functions?
- Muni September 11, 2014 in India| Report Duplicate | Flag | PURGE
Kaseya Java Developer Java - 0of 0 votes
AnswerHow can you handle uncheckedexceptions globally in project?
- Muni September 04, 2014 in India| Report Duplicate | Flag | PURGE
Java Developer Java - 1of 1 vote
AnswersDefine a class Point having 2 fields x (int) and y (int) which represents a point (x,y)
- ruhi August 31, 2014 in United States
Define a class Line having 2 Points, pt1 and pt2.
Define a class Quadrilateral having 4 Points, pt1, pt2, pt3 and pt4. The class also has the following functions
- getAllLines() which returns a Line[] consisting all 4 lines of the Quadrilateral. Note that the 4 lines of the quadrilateral will be pt1:pt2, pt2:pt3, pt3:pt4 and pt4:pt1
- longestSide() which return a Line that represents the longest the side of the Quadrilateral.
Also define the constructors for each class| Report Duplicate | Flag | PURGE
Accenture Java Developer - 0of 0 votes
Answers*
- Muni August 26, 2014 in India
* *
* * *
* * * * write a program in java??| Report Duplicate | Flag | PURGE
Java Developer Java - 0of 0 votes
AnswersNormally where singleton design pattern used in a project?
- Muni August 25, 2014 in India| Report Duplicate | Flag | PURGE
Java Developer Java - 0of 0 votes
Answerswhat is low level design and high level design in realtime java?
- Muni August 25, 2014 in India| Report Duplicate | Flag | PURGE
Java Developer Java - 0of 0 votes
Answerswhat are the top 10 coding standards/code reviews in java?
- Muni August 25, 2014 in India| Report Duplicate | Flag | PURGE
Accenture Java Developer Java - 0of 0 votes
AnswersSpring following by default singleton scope..so if we are using clone() is there anything happend?if anyone knows please tell me the answer
- Muni August 25, 2014 in India| Report Duplicate | Flag | PURGE
Java Developer Java - -3of 3 votes
Answersdesign a durable API
- careercup2003 July 31, 2014 in United States| Report Duplicate | Flag | PURGE
Microsoft Java Developer - 0of 0 votes
Answersweb-based chatroom application
- careercup2003 July 31, 2014 in United States| Report Duplicate | Flag | PURGE
Microsoft Java Developer Algorithm - 0of 0 votes
Answersgiven 50K static online web pages, how do I identify all of them that have a phone numbers (assme 10 dights in a row)
- careercup2003 July 31, 2014 in United States| Report Duplicate | Flag | PURGE
Microsoft Java Developer Ideas - 0of 0 votes
AnswersDesign Tic-tac-toe game?
- rahulkgupta July 09, 2014 in India
Mention all the classes, object that will be used in Java.| Report Duplicate | Flag | PURGE
Software AG Java Developer Object Oriented Design - 0of 0 votes
AnswersString d1="7 dec 2012";
- alis June 06, 2014 in India
String d2="15 dec 2012";
String d3="12 dec 2012";
String d4="16 dec 2012";
String d5="16 dec 2012";
String d6="24 dec 2012";
days between d1 and d2 is: 9
days between d3 and d4 is: 1 (12 dec to 15 dec counted in d1 and d2, don't count overlapping days)
days between d3 and d4 is: 8 (16 dec counted in d3 and d4, don't count overlapping days)
now final output should be: 9 + 1 + 8=18| Report Duplicate | Flag | PURGE
Tricon Java Developer Java - 0of 0 votes
AnswersHow do you swap bits at indexes i & j of a 32-bit memory word?
- Murali Mohan June 03, 2014 in India| Report Duplicate | Flag | PURGE
Marketshare Inc. Java Developer Algorithm - 1of 1 vote
AnswersYou are give a circular pizza with 3n pieces of pizza , each piece of pizza has different volume, The task is to eat n pieces of pizza such that the total consumed volume of pizza is the maximum, condition when the user chooses a piece of pizza he has to discard its immediate 2 neighboring pieces, the pizza is circular and every time we eat and discard there are new neighbors being formed per piece.
- Murali Mohan May 30, 2014 in United States
For ex:
pizza one : 2 1 1 2 9 1 10 1 9
pizza two: 1 9 2 2 9 1 1 10 1
pizza three: 1 9 2 2 9 1 1 10 10
Suppose the pizza was divided into 2n pieces, would your approach to find the maximum volume change from that of 3n pieces?| Report Duplicate | Flag | PURGE
Marketshare Inc. Java Developer Algorithm - 0of 0 votes
AnswersFind if there is a cycle in a list of parent-child tuples.
- Alok May 25, 2014 in United States
You are given a list of tuples
(a,b) => a is parent of b
(b,c) => b is parent of c
(c, d) => c is parent of d
(d, a) => d is parent of a ----> Cycle detected..
Implement a Java method.| Report Duplicate | Flag | PURGE
ADP Java Developer - -1of 1 vote
AnswersYou are given parent-child relationships. Your goal is to find find the data is cyclical.
- Alok May 25, 2014 in United States
(a,b) => a is a parent of b
(b, c) => b is a parent of c
(c, a) => c is a parent of a ... Oops! Cycle found!
public bool hasCycle(List<String, String> input);| Report Duplicate | Flag | PURGE
ADP Java Developer Algorithm - 0of 0 votes
AnswersHere is a small program which will be of my help.
- sharathchitra May 23, 2014 in India
Please code it in JAVA. If you are successful, please send me the code as early as possible by tomorrow.
If you are not able to get, please send me the update.
The Definition is given as below:
1. A File contains string for Example: GCDNPQACKSPEGF...FIM
2. Read each character from this file and ASSIGN the values as below:
A,C,S = 3
F,D,N,T= 4
P,F,Y = 9
M,E,G = 2
Q,H,I,K,R,L = 6
3. AFTER ASSIGNING CHECK THE FILE FOR MAPPING
4. Sum THE VALUES in that sequence for Eg: 2+ 3+ 4...... = SUM = 60
5. FIND THE total LENGTH of the sequence for E: L = 20
6. Find the AVERAGE A = SUM/L =60/20 =3
7. USE THE PATTERNS as triplets from the same file as given below AND CALCULATE EACH PATTERN'S WEIGHTAGE as for Eg:
GCD = 2 + 3 + 4 = 9 (G = 2, C=3, D=4 from the mapping)
CDN = 3+4+4 = 11
...........
for all possible patterns
8. FinD THE MAXIMUM OF ALL THE PATTERN'S WEIGHTAGE
So, the o/p should be : Average -->
Triplet and its Weightage as :GCD : 2 + 3+ 4 = 9 for all possible triplets
Maxi Weightage -->| Report Duplicate | Flag | PURGE
Student student Java Developer Java - 0of 0 votes
AnswersIn synchronous request from browser how do you get results if you have to access 2 different databases
- cheeta May 14, 2014 in United States| Report Duplicate | Flag | PURGE
Citigroup Java Developer Java - 0of 0 votes
AnswersIn assembly line situation, how do you pass a job from thread1 to thread2 to thread3?
- cheeta May 14, 2014 in United States| Report Duplicate | Flag | PURGE
Citigroup Java Developer Java