Java Interview Questions
- 0of 0 votes
AnswersDesign a social network - describe functionality to add a friend, delete a friend and check for mutual friends
- aimGoogle March 29, 2011| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Java - 0of 0 votes
AnswersWe have a file or say book as input. Write a java code which can find the occurrence of every word on page.
- JavaJavas March 13, 2011
We don’t want the number of occurrence; we want the number of pages on what word is coming. Take care of each and every word.| Report Duplicate | Flag | PURGE
Intuit Software Engineer / Developer Java - 0of 0 votes
AnswersThis question was asked in Nextag.
- Sushant March 13, 2011
What do you do when you need a synchronize a collection.Using a synchronized collection is obviously not an option because of performance issues.
The other option is to use synchronized blocks when doing modification.
What would be an optimum solution for the above?| Report Duplicate | Flag | PURGE
Nextag Software Engineer / Developer Java - 0of 0 votes
AnswersDifference between Java and C++?
- Krish March 09, 2011| Report Duplicate | Flag | PURGE
NetApp Bloomberg LP Financial Software Developer Software Engineer / Developer C C++ Java - 0of 0 votes
Answerswhat are final, finalize and finalizer in java?
- troy March 08, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
Answerswhen do you use "equals" in java?
- troy March 08, 2011
when is "equals" overridden in java?
why cant you just use "==" instead of "equals"| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
Answersdescribe the concept of polymorphism
- troy March 08, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
Answerswhat are final, finalize and finalizer?
- troy March 07, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Java - 0of 0 votes
Answerswhat are final, finalize and finalizer?
- troy March 07, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Java - 0of 0 votes
AnswersI know that String is declared as a final class in Java, so we can't extend the class. Than how we are able to use methods from String class like toString(), equals() etc, because they are non final methods.
- JavaJavas March 06, 2011| Report Duplicate | Flag | PURGE
Developer Program Engineer Java - 0of 0 votes
AnswersWhat is the difference between sendRiderct and forward?
- JavaJavas March 02, 2011
everyone knows the difference but now the main question is what happens to parameter which were sent in request and than either redirect or forward. Does the parameter remain in request or do we need to send again?| Report Duplicate | Flag | PURGE
VMWare Inc Software Engineer / Developer Java - 0of 0 votes
AnswersThere is one pdf file with lots of Unix commands and text. Write a java program to read that file and execute those commands on DOS (Windows) and output should be displayed on console also And copy that file on some other place also as it is.
- JavaJavas February 24, 2011| Report Duplicate | Flag | PURGE
Software Engineer in Test Java - 0of 0 votes
AnswersHow we can achieve internalization on UI level say JavaScript?
- JavaJavas February 17, 2011| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Java - 0of 0 votes
AnswersWhy do we need hashcode() method, when we have equals()?
- JavaJavas February 17, 2011| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Java - 0of 0 votes
AnswersYou are developing a system for a cell phone which will automatically predict what word a user is typing. Talk about the data structures and algorithms you would use to make this, keeping in mind that cell phones have limited memory/CPU power.
- Anonymous February 16, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersWhen is a finally block executed? Give an example of when to use one.
- Anonymous February 16, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswerGive a detailed description and designing of a Card Game?
- Karthik February 07, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Java - 0of 0 votes
Answerssingleton object?
- faltoo interviews February 04, 2011| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersYou have a student class which have String firstName, boolean isBoy and int age. Write equals method for the class.
I wrote it then he asked there is a class Student2 which extends from this and has lastName field as well.
NowStudent s1 = new Student("firstName", 23, true); Student s2 = new Student("firstName", "lastName", 23, true);
what will s1.equals(s2) will return. Is it correct ?
- prit January 26, 2011| Report Duplicate | Flag | PURGE
Flipkart Software Engineer / Developer Java - 0of 0 votes
AnswersWhere are logical mistakes(minimum 3)
- ekk January 23, 2011
public class Test1 {
private int maxCount = 1000;
private int index = 0;
private Object[] objects = new Object[maxCount];
public void push (Object o){
objects[index] = o;
index++;
}
public Object pop(){
index--;
return objects[index];
}
}| Report Duplicate | Flag | PURGE
Software Engineer / Developer Java - 0of 0 votes
AnswersName all immutable classes in JAVA?
- JavaJavas January 23, 2011
I know only 'String' class. Is there any other also?| Report Duplicate | Flag | PURGE
Software Engineer / Developer Java - 0of 0 votes
AnswersWhy do we need thread class when we have Runnable interface?
- JavaJava January 20, 2011| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Java - 0of 0 votes
AnswersWhat is the difference between Java and C++
- Sana January 18, 2011| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Java - 0of 0 votes
AnswersWhat are basic structures that are considered in polymorphism in Java and how inheritance help in polymorphism?
- akshaycmpn January 17, 2011| Report Duplicate | Flag | PURGE
Amazon Java - 0of 0 votes
AnswersWhat are basic structures that are considered in polymorphism in Java and how inheritance help in polymorphism?
- akshaycmpn January 17, 2011| Report Duplicate | Flag | PURGE
Java