Java Interview Questions
- 0of 0 votes
Answersfind the length of string without using inbuilt methods in java
- masoom April 29, 2012 in India| Report Duplicate | Flag | PURGE
Samsung Java Developer Java - 0of 0 votes
AnswersGiven two classes like animal and dog class where dog class inherit the animal class. Write a function which will return deep clone instance
- shooter April 17, 2012 in India| Report Duplicate | Flag | PURGE
Adobe Java Developer Java - 0of 0 votes
Answersprint a tree with label wise in given that scenario
- masoom April 12, 2012 in India
15
12 23
9 16 17 35| Report Duplicate | Flag | PURGE
Developer Program Engineer Java - 0of 0 votes
AnswersWrite a Program
- abcabc April 09, 2012 in United States
You will create an employee class with the following properties:ID (int), FName(string), LName(string).
(Functionality) to track an employee's manager and subordinates.
Add a method that displays the names of all subordinates for a given employee.
Calculate the complexity. Do not use multiple classes.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersWhat is a hashMap/ hashTable?
- Sr April 02, 2012 in United States
What happens if we have a bad hashing function?
How does java store the hashtable/hashmap?| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
Answerswrite a program which returns the first non repetitive character in the string.
- bhargav March 30, 2012 in United States| Report Duplicate | Flag | PURGE
Expedia Java Developer Algorithm Java - 1of 1 vote
Answerswrite a program to find whether the string is palindrome or not.
- bhargav March 30, 2012 in United States| Report Duplicate | Flag | PURGE
Expedia Java Developer Algorithm Arrays Java - 0of 0 votes
AnswersWhat is finally in java, and why is it used.
- An March 19, 2012 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersExceptions in Java, checked/unchecked and how are they handled
- An March 19, 2012 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersWhat is an abstract class and how is it different from a normal class, give a scenario where you would use one over the another
- An March 19, 2012 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersWrite a Program
- axoaxo March 19, 2012 in United States
Reverse a String. Length of String is very long. Do not use in-built reverse method. Reversal method should be time efficient. Calculate the complexity.| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
AnswersWrite a Program
- axoaxo March 19, 2012 in United States
You will create an employee class with the following properties:ID (int), FName(string), LName(string). (Functionality) to track an employee's manager and subordinates. method that displays the names of all subordinates for a given employee.| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
AnswersWhy do you need Synchronization and how it works? Working of Implicit and explicit wait() and notify
- axoaxo March 16, 2012 in United States| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
Answers1. There is a web URL which contains %20 in place of space, how will your replace every %20 with space?
- Hussain March 14, 2012 in India for Hyderabad
2. Let's say we have a file on the disk which contains millions of such URL, how will you replace all %20 with space?
3. Let's say, on the file there are only 5% URL which contains this %20, how will your replace with space in most efficient way?| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersFind all the possible passwords, given the length of the password and that it is a well ordered number (159 is well-ordered as 1<5<9)
- S.A.M March 10, 2012 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Java - 0of 0 votes
AnswersGiven two strings, you need to transpose the first string to the second string by means of only swaps between 2 consecutive characters in the first string. This must be performed by doing a series of these swaps in order to get the second string
- S.A.M March 10, 2012 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Java - 0of 0 votes
AnswersVerify if the given password is valid/invalid;
- S.A.M March 10, 2012 in United States
1. must be 5-12 characters long
2. must contain atleast one number and one lowercase character
3. a sequence must not be followed by the same sequence (like 123123qs is invalid, 123qs123 is valid)| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Java - 0of 0 votes
AnswersVerify if the given password is valid/invalid;
- S.A.M March 10, 2012 in United States
1. must be 5-12 characters long
2. must contain atleast one number and one lowercase character
3. a sequence must not be followed by the same sequence (like 123123qs is invalid, 123qs123 is valid)| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Java - 0of 0 votes
AnswersYou are a hacker and need to find possible passwords given the length of the password and that it is a well-ordered number (eg., 123 is well-ordered as 1<2<3 and 213 is not well-ordered as 2<1<3 is NOT true)
- S.A.M March 10, 2012 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Java - 0of 0 votes
AnswersTake a series of integers as input till a zero is entered. Among these given integers, find the maximum of the odd numbers and the minimum of the even integers (not including zero) and print them.
- S.A.M March 10, 2012 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Java - 0of 0 votes
Answerscan operator overloading be implemented in java if yes how?
- Sam March 08, 2012 in India| Report Duplicate | Flag | PURGE
Java - 0of 0 votes
AnswersIs is possible to write a program to print number 1 to 100 wihout using loop. if yes how many way and how?
- Sam March 08, 2012 in India| Report Duplicate | Flag | PURGE
Java - 0of 0 votes
AnswersHow many ways two variables can be swapped without using third variable?
- Sam March 08, 2012 in India| Report Duplicate | Flag | PURGE
Software Engineer / Developer Java - 0of 0 votes
AnswersImmutable Object in Java?
- andy March 06, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Java - 0of 0 votes
AnswersDifference between Linked List and Array List
- andy March 06, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Java - 0of 0 votes
Answersdifference between hashtable and hash map
- Anonymous February 24, 2012 in United States| Report Duplicate | Flag | PURGE
Java - 0of 0 votes
AnswersGiven (i) a non-empty binary search tree with double values (e.g. 3.5) in each node and (ii) a key value K
- mihirk February 15, 2012 in United States
Write a method to find the closest value to K.| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Algorithm Coding Data Structures Java Trees and Graphs - 0of 0 votes
AnswersWhat is the use of interfaces in Java?
- mihirk February 08, 2012 in United States for Cloud Resource Management
Give a professional answer and not a simple one like they are used in place of multiple inheritance or they facilitate OOP in Java, etc..
Also can you do without interfaces?| Report Duplicate | Flag | PURGE
VMWare Inc Software Engineer / Developer Java