Interview Questions and Answers for 'Booking.com' - 6 question(s) found - Order By Newest Very frequently asked. Favorite question in Walk in Drive of many Indian service companies. Q1. Difference between TreeMap and HashMap ? Core Java Anonymous
Ans. They are different the way their elements are stored in memory. TreeMap stores the Keys in order whereas HashMap stores the key value pairs randomly. Sample Code for treemap Sample Code for hashmap Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve java collections map treemap hashmap Amber Road CTS (Cognizant) ION Trading DataMetica Accenture Accenture India The Advisory Board Company BidGely Infosys Tata Consultancy (TCS) HCL Technologies Wipro Booking.com MakeMyTrip Garena Online Garmin ION Trading Accuity Palantir Technologies Books International Wealthfront Marin Software Garmin IBM Global Logic Fiserv Cumulus Systems CCTS UST Global Cumulus Systems Apcolite basic   frequent Try 1 Question(s) TestFrequently asked question for intermediate developers. Q2. What is Volatile keyword used for ? Core Java Anonymous
Ans. Volatile is a declaration that a variable can be accessed by multiple threads and hence shouldnt be cached. Sample Code for volatile Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve java oops synchronization volatile java keywords ABC Ltd Ciena Xchanging Square Infoview Technologies HCL Technologies EPAM GrubHub TeleMessage TRUSTe Informatica Square Medidata Solutions Yellow Pages eQ Technologic Sutra Analytics CustomerXPs Globant BB Holdings Rakuten Booking.com BlackRock Qualcomm LSI Corporation ARM Holdings SpaceX Toshiba Peapod Amadeus Apptio Tivo EchoStar HomeAway Syscom Technologies Aversan Symantec Samsung India Axtria Qualcomm CGI Group TrustArc Square intermediate   frequent Try 1 Question(s) Test Q3. Write a Program to check if 2 strings are Anagrams ? Core Java 2016-11-30 20:52:37
Ans. public void checkIfAnagram(String str1,String str2){
boolean anagram = true;
for(char c:str1.toCharArray()){
if(!str2.contains(String.valueOf(c))){
System.out.println("Strings are Anagrams");
anagram = false;
}
if(anagram == true){
System.out.println("Strings are not Anagrams");
}
}
} Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve check if 2 strings are Anagrams Amazon DataMetica Hewlett Packard (HP) Opera Solutions AirWatch Booking.com JP Morgan Verdantis AppDynamics QSI Healthcare Vistaar Technologies Maventic 5AM Solutions Rare Mile Technologies Shutterfly Fiberlink Veeva Systems Flipkart eHarmony Splunk Zoho Betterment WisdmLabs Adap.tv Spotify Yahoo Wissen Infotech GlobalLogic Infinite Computer Solutions basic   frequent Q4. What is ConcurrentModificationException ? Core Java Admin info@buggybread.com
Ans. This is the exception that is thrown when we try to modify the non concurrent collection class while iterating through it. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve java collections concurrentmodificationexception exception concurrency Calypso Technology Deloitte IRIS Software Java R&D BNP Paribas Booking.com Aricent ThoughtWorks Prokarma Cassiopae India Prokarma India Synechron India Deloitte India Royal Bank of India (RBS) India intermediate Q5. Write a method / program that will determine if the parenthesis are balanced in a given string. Core Java 2017-02-03 13:13:55
This question was recently asked at 'Jetbro,Booking.com,Cloudera,UrjaNet,Wissen Infotech,ThoughtWorks,Capital One,Experian,Remaxys,MongoDB,One.com,Lime Brokerage,Netcracker Technology,Ooyala'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve string code coding Jetbro Booking.com Cloudera UrjaNet Wissen Infotech ThoughtWorks Capital One Experian Remaxys MongoDB One.com Lime Brokerage Netcracker Technology Ooyala Q6. How would you do an object oriented design on animals in a zoo ? Design 2017-02-03 13:14:47
This question was recently asked at 'Booking.com,InterContinental Hotels,Caissa,Workday'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve Booking.com InterContinental Hotels Caissa Workday